Topic: How long will a user be logged in ? (Read 1271 times)
Atari ST fan
Posts: 8
68 credits Members referred : 0
« on: Dec 19, 2007, 12:09:25 pm »
Hello !
How long will a user be logged in ?
I suppose this depends on the expiration of the cookie which is set in the login_saver() function: $expire is set to time()+2592000, this is 30 days.
Using my web-application with access_user, I notice that a user is logged out after about 1 hour. But why is he logged out when the cookie is set to 30 days ?
I have many users complaining about that so it is not just me having this problem. Many users find this annoying - they have to log in again and again several times a day.
So what can be the reason why a user is logged out after a short time ?
Thank you for your time,
Philipp
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #1 on: Dec 19, 2007, 12:39:09 pm »
hi this are two things the cookie set the time how long the data is stored in the cookie and the the session is handled by php (check your phpinfo)
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7467