Jump to content

session to not expire?? please help!


mcerveni

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.