Page 1 of 1

session expire time

Posted: Thu Jun 30, 2005 7:30 am
by shiznatix
i need to set the sessions expire time to 2 hours. well i looked into it and it seamed a simple ini_set would do the trick, well i decided instead of waiting 2 hours to see if it worked i would just set it to 10 seconds and see if it worked by doing

Code: Select all

ini_set ("session.gc_maxlifetime","10");
well that did not work. any sugestions how to keep my session alive for 2 hours?

Posted: Thu Jun 30, 2005 7:54 am
by neophyte
Hey Shiznatix -- Found that just a few days ago...

session_set_cookie_params()

Posted: Thu Jun 30, 2005 8:15 am
by shiznatix
many thanks

Posted: Thu Jun 30, 2005 8:42 am
by Roja
neophyte wrote:Hey Shiznatix -- Found that just a few days ago...

session_set_cookie_params()
Wow. Odd! I had never seen that function before, and I actually needed that.

Many thanks from me too!

Posted: Thu Jun 30, 2005 8:56 am
by neophyte
No biggie. I think I actually picked it up here on another thread.