How can I set session timeout for 2-3 days in PHP? -


i set sessions last 2-3 days users not have login data after days of being idle.

please me code achieve this.

you try:

ini_set('session.gc_maxlifetime', 2*60*60*24); // 2*60*60*24 = 2 days 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -