I have my website that need login for view further information. My problem is that when user login the session is started to a limited time that already define in php.ini file. I want to unlimited this session time when user log in. I already user ini_set() function i-e:
ini_set("session.gc_maxlifetime",720000);
ini_set('session.gc_probability',1);
ini_set('session.gc_divisor',1);
which temproraily set php_ini value of session time. but it coul'nt work.
Is there something im doing wrong?
Please help me for resolve this problem
setcookie(name,value,expire,path,domain,secure)Might be a better way - jagmitg60 * 60 * 24 * 365(31536000) will last you a year. Isn't that enough?720000seconds is only8.3 days(720000 / 60 / 60 / 24). - h2ooooooo