I have a issue with my sessions getting lost after an hour or two. It's an intranet site and I would prefer to have the user time out after 8 hours.
Here is the code I currently have...
if( !session_id() ){
$expireTime = 60*60*8; //8 Hours Expiration
session_set_cookie_params( $expireTime );
session_start();
}
I know that Apache gets restarted for log rotation and session could be lost but that happens overnight. I have been able to remain logged on for over 3 hours now but I keep getting reports of lost sessions.