CodeIgniter Forums
session - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: session (/showthread.php?tid=25097)



session - El Forum - 11-30-2009

[eluser]simpleCoder[/eluser]
How can you make a session last for a long time , eg a few hours. I would like to have my system stay logged in for a few hours even if the user is not using the system . Currently , if my users are not interacting with my system , it times out in just a few hours


session - El Forum - 11-30-2009

[eluser]Eric Barnes[/eluser]
You can change the session time out in php.ini or even better would be to use cookies.