Session Timeout

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Event though it can be set in the php.ini file globally

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 500

Can it be set per user session?


Re: Session Timeout

Quoted text here. Click to load it


Andy Hassall :: :: :: disk and FTP usage analysis tool

Re: Session timeout

Hello everyone,

   I am implementing a site which will be used in an intranet by a limited
number of users. The web server i am using is WIN2003 /  IIS 6.0 / PHP 5. I
want to enable sessions that will not timeout even after a long time (3-4

   Having read some of the documentation i concluded that i should set
session.gc_maxlifetime and session.cookie_lifetime in my php.ini
appropriately, i.e. session.gc_maxlifetime=14400 and
session.cookie_lifetime=0. Am i right at this?

   Furthermore, i am wondering if i should set IIS appropriately, does it
intervene with session data(sent session cookies)? I think that Apache does
not but i am not sure about IIS.

   All advice welcome.

Re: Session timeout

*** stathis gotsis escribió/wrote (Sun, 2 Jul 2006 02:50:03 +0300):
Quoted text here. Click to load it

The web server doesn't even know what sessions are. It merely receives HTTP
requests and pass the received parameters to the PHP script.

-+ - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web:
+- Mi web de humor con rayos UVA:

Site Timeline