|
|
|
|
|
by scotty79
4733 days ago
|
|
Or you can do this: Client generates random value, puts it into cookie and passes it to server along with valid credentials. Server remebers it for this user and whenever at later time it sees this value in the cookie it logs in this user. Server forgets this value when this user logs out and after some time. If client does't have javascript or you don't trust randomness it can generate you can create this value on server and make the server set this cookie when it responds to login. |
|