PHP: Session lifetime
Session lifetime. An important point: set a directory to store sessions.
ini_set('session.save_path', $_SERVER['DOCUMENT_ROOT'] . '/sessions/'); //Important! ini_set('session.gc_maxlifetime', 86400); ini_set('session.cookie_lifetime', 86400);
0 Comments