Page 1 of 1

session timeout

Posted: Fri Jun 04, 2004 8:31 am
by gurjit
hi all,

i'm looking for a script or method of how i can change the session timeout in the code. at the moment the session times out every 30 minutes via the server setting. how can i override this and set the session to timeout after 20 minutes. i want to code this into my template rather than set it in the php.ini file.

Posted: Fri Jun 04, 2004 10:54 am
by markl999

Posted: Fri Jun 04, 2004 10:55 am
by Joe
Im not too sure if theres a way to participate this with code. instead I think you would have to edit the php.ini file. Im not to sure on this so please don't take what I said to truth.

Best of luck


The lil man Joe 8)

Posted: Fri Jun 04, 2004 10:59 am
by hedge
Just store a datestamp as a session var, update it each time you hit a script and check it against current time to see if the last hit was too long ago.

although this still won't let it last past the time set in your php.ini file.

Posted: Fri Jun 04, 2004 11:01 am
by Joe
Now theres an idea that I never thought of. :(

Posted: Fri Jun 04, 2004 11:16 am
by Guilherme Blanco
During the last 2 weeks, I've been creating a session/cookie manager...

You can set custom timeouts to each session.

If you insterested... just hit me.

Regards,