How long a session is stored?

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
Qaid
Forum Commoner
Posts: 33
Joined: Wed Feb 15, 2006 12:04 pm

How long a session is stored?

Post by Qaid »

How long is a session stored? And can i edit it?

Thanks
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

have a look at your session.gc_maxlifetime in your php.ini file
that is the number of seconds your session will persist before being cleaned up by the system

and yes, you can edit it

Code: Select all

$_SESSION['var'] = $new_data;
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Qaid
Forum Commoner
Posts: 33
Joined: Wed Feb 15, 2006 12:04 pm

Post by Qaid »

Im not a shark at the session part.. Can you explain the php code a bit more? :)

Thank you very much...
Post Reply