Session lifetime

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

Session lifetime

Post by aceconcepts »

Hi,

I'm pretty sure that this question must have been answered before but I can't seem to find the answer!

My question is: how can I change the default SESSION lifetime?

If I want all session data to last for 1 hour, how would I implement this?

Thanks and I apologise if this has been answered before.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

http://php.net/ref.session#id7148468

you're looking specifically for the "session.gc" ones.
Post Reply