Hi all,
Is there a way to change default session time from a php script? I've tried most of the php manual examples but nothings seems to work.
Here's what I run now, at the very beginning of the script:
Code:
session_start();
session_destroy();
session_start();
session_regenerate_id();
ini_set("session.gc_maxlifetime", 18000);
$session_life = ini_get("session.gc_maxlifetime");
When I quiry session.gc_maxlifetime it reads the new value, however, the sesssion still expires after 24 minutes (the php default).
TIA