Persistence of Session data

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
Bob Kellock
Forum Newbie
Posts: 10
Joined: Fri Oct 30, 2009 10:57 am
Location: Wiltshire, UK

Persistence of Session data

Post by Bob Kellock »

How long does session data persist if session_unset and session_destroy are not called?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Persistence of Session data

Post by Christopher »

It is a configuration setting (in php.ini), so you can set it to whatever you want. I think the default setting is 24 minutes.
(#10850)
Post Reply