Quote:
Originally posted by Antagony
As for making a cookie time out, I know how to do that, but how does the site know when that cookie has timed out?
|
I suppose you would control the login with sessions. Once the cookie times out, the next page the user tries to access looks for that cookie. If it doesn't exist, delete the session, log the user out before they try to access the next page.