Custom session timeout period

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Custom session timeout period

Post by aceconcepts »

Hi,

I've never played around with session timeouts but I was wondering if anyone could let me know of a way to set a custom session lifetime/timeout period.

i.e. If I wanted a session to 'live' for 1hour as opposed to the default 24minutes.

Thanks.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

You might want to look up
session.cookie_lifetime
session.gc_probability
session.gc_divisor
session.gc_maxlifetime
at http://de2.php.net/session
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Post by aceconcepts »

thanks.
Post Reply