Hi, currently I'm running very high traffic on my website, hence I'm trying to provide it with a new server to deal with it.
But, while waiting for my new server to be set up, I'm experiencing a rather annoying problem: My users keep getting logged out, as a result of what I think is the server crapping out. It seems as if the sessions are just eliminated at random times? Or is it something else?
And of course, what can be done about it? If anything?
Thanks!
- Terriator
Server Load - Sessions?
Moderator: General Moderators
Have a look at http://php.net/session_set_save_handler
And a handy article by Chris Shifflet:
http://shiflett.org/articles/guru-speak-jan2005
And a handy article by Chris Shifflet:
http://shiflett.org/articles/guru-speak-jan2005
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
Yep, that could very well be exactly what is happening. linkIt seems as if the sessions are just eliminated at random times? Or is it something else?
That directive in the php ini does NOT indicate that session will expire randomly, it is to set how probable the garbage collection process is to run. The directive session.gc_maxlifetime dictates how old session data must be before PHP will remove it.
However, the host could be deleting session data via a cronjob to empty the temporary directories, which is common.
However, the host could be deleting session data via a cronjob to empty the temporary directories, which is common.