mcerveni Posted October 6, 2009 Share Posted October 6, 2009 I have a login page that creates 2 sessions. $_SESSION['empID'] = $row['empID']; $_SESSION['agentName'] = $row['AgentName']; I have over 80 employees login to the website. And for the most part, they are logged in for over 4-5 hours, and after that time, I've seen those 2 sessions become blank... how should I make those sessions not expire at all??? Quote Link to comment Share on other sites More sharing options...
Amtran Posted October 6, 2009 Share Posted October 6, 2009 You could just set cookie, have it expire after 10 hours or something. Quote Link to comment Share on other sites More sharing options...
redarrow Posted October 6, 2009 Share Posted October 6, 2009 it in the php.ini set the session life higher.. put this on the page the session last ini_set("session.cookie_lifetime", 86400); 24 hours <<<<<<< Done via secounds ok. read this for more info. http://www.cobra-scripts.com/php-manual/ref.session.html Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.