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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

session timeout

Status
Not open for further replies.

ecalbert

Programmer
Dec 25, 2004
61
IL
i have a login for watching videos.
I need to set the timeout to be very large like a few hours.

How do I do this?
 
The default is typically 180 minutes (three hours). Use phpinfo() to see what your system setting is.


Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
There are two settings that affect sessions.

First is the lifetime of the session cookie. It's set, by default, to "as long as the browser says open", so you should be okay.

For an discussion of how all the other session variable settings in php.ini affect sessions, see faq434-4908



Want the best answers? Ask the best questions! TANSTAAFL!
 
it's on a hosted server -- can I still change the php.ini?
 
there is not a setting I can just put at the top of the page??

i know in asp I would do session.timout=

-there is no equivalent of this in php
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top