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??? Link to comment https://forums.phpfreaks.com/topic/176647-session-to-not-expire-please-help/ 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. Link to comment https://forums.phpfreaks.com/topic/176647-session-to-not-expire-please-help/#findComment-931299 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 Link to comment https://forums.phpfreaks.com/topic/176647-session-to-not-expire-please-help/#findComment-931317 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.