Update, 24OCT2011: I moved this to ServerFault, which is probably more appropriate and which is where I meant to post this in the first place. However, I couldn't find a "move to SF" option so really, I just copied it there. Can anyone help with actually moving this?
I've done some research into this and have not found a definitive answer.
We have a web app that is using the PHP+Memcache session handler.
I have several questions, all interrelated, but ultimately my issue is, "Why are PHP sessions apparently not expiring when we think they should be?" ie The end user should be logged out of the app after a set time, but is not.
Here are the dots, please help me connect them, and tell me where I am mistaken:
Users are not being logged out.
How can I even debug this? Memcache isn't exactly transparent.
Update I should have specified that the example case that has not been working is a site with a session timeout set to two hours. An example user would last use the site at night, and then, 8 - 10 hours later, come back to the site and still be logged on.
The end user should be logged out of the app a set time after their last request to the server . Every time a client makes a request, his expiration resets. If the expiration is 3 minutes, and you make a request every 2 minutes, your session will never expire.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.