[PHP] How to set the time for session??

2001-09-19 Thread Balaji Ankem

Hi,
  i want to expire the session if user sits 15 minutes idle without doing
anything.

Then how can i set the time for session??

Thanks in advance

Regards
-Balaji




--
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers
and is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.
-



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


RE: [PHP] How to set the time for session??

2001-09-19 Thread Johnson, Kirk

 Then how can i set the time for session??

See the php.ini file, for session.gc_maxlifetime setting:

session.gc_maxlifetime= 1440; after this number of seconds, stored
; data will be seen as 'garbage' and
; cleaned up by the gc process

Kirk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How to set the time for session??

2001-09-19 Thread speedboy

   i want to expire the session if user sits 15 minutes idle without doing
 anything.

On each page view, you could write a variable to the session file, so the
last modified time is updated. Then run the session deletion script from:

http://database.sourceforge.net/scripts/session.sh

every minute. This is very reliable.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]