Hi there!
I have a problem with session's timeout.
I need the session timeout longer, and I have tried my ways, but it didn't work, here are ther:
1------------------------------------------------------------
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
2------------------------------------------------------------
$expireTime = 606024; // 1 day
session_set_cookie_params($expireTime);
3-----------------------------------------------------------
session_cache_limiter('private');
$cache_limiter = session_cache_limiter();
session_cache_expire(720);
$cache_expire = session_cache_expire();
I have used three of them and it didn't work perfectly or may be I have done something wrong with them or anything else?
Hope someone can help me with it.
Thanks in advance.