Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

$_SESSION var questions 1

Status
Not open for further replies.

bam720

Technical User
Sep 29, 2005
289
US
I was curious as to how long Sessions are persitent by default. I found on php.net:
session.cache_expire ==> "180" default
session.gc_maxlifetime ==> "1440" defualt

My guess is that these are times and in seconds? Correct me if I'm wrong. I am using the sessions vars for my log in script and protectiung my pages by making sure a user is logged in. Which one is it that actually 'cuases the user to be "logged out" by timeout? Does the cache expire mean that the username is no longer set after 3 minutes? Thanks for the help.
 
exactly what I was looking for. Thanks for the write up very concise.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top