Topic: How long will a user be logged in ? (Read 363 times)
Atari ST fan
Posts: 8
68 credits Members referred : 0
« on: Dec 19, 2007, 01: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: 6280
38506 credits Members referred : 374
It's time to use PHP5!
« Reply #1 on: Dec 19, 2007, 01: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)