Sessions expiring -> quick fix?
Posted: Sat Jan 14, 2006 1:39 pm
I am starting sessions when user's register a username and login (so it remembers them), however after a couple weeks, I notice the session ends and I have to login again. I want to set the sessions so that they never expire or at least expire after a very long time (kinda like vBulletin, phpBB, Yahoo!, etc). This is the session start I am using... what do I need to change/add to get this to work right? Thanks!
NOTE: My login.php assigns the session variables correctly
BELOW: the code below is in the header file of every php page.
NOTE: My login.php assigns the session variables correctly
BELOW: the code below is in the header file of every php page.
Code: Select all
session_set_cookie_params (60*60*24*10000, '/', 'www.mywebsite.com');
session_start();