Hi,
I have these few setting below on top of my page to handle my session.
ini_alter('session.use_cookies', '0');
ini_alter('session.use_trans_sid', '1');
ini_alter('session.gc_maxlifetime', '21600');
ini_alter('session.gc_probability', '100');
ini_alter('session.cookie_lifetime', '21600');
ini_alter('session.cache_expire','60');
In creating the session, it is fine. The only way i want to destroy the session is via calling the sess_destroy().
What I trying to do is, set the session automatically destory after 1 hour, as same as the the value i set in gc_maxlifetime. However, it didnt' work. Even I close the browser, the session i store at server still valid.
Any advice is very appreaciated.
Thanks
Louis
p/s: my machine is running PHP4.1.0 and Apache 1.3.23, on Redhat 6.2.