I'm having trouble preserving session state for a prolonged period of time. I use sessions to preserve login state. I require the below snippet of code at the top of each of my pages before any other code. First off, is there any settings I'm missing?
session_cache_expire(2880); //set session to expire in 48 hours
session_start();
Some people are logged out before the 48 hour expiration time. What types of things could cause this? I know closing the browser kills the session and this is not the case.
As far as I can tell it happens when the user is inactive for several hours or more.
Users are never logged off while actively browsing the site.
What gives?