Re: Persistence of session files
| From: | Chris Shiflett | Date: | Sun, 07 Dec 2003 06:07:30 +0000 |
| Subject: | Re: Persistence of session files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172120@lists.php.net to get a copy of this message | ||
--- Pablo Gosse <gossep@unbc.ca> wrote:
> Hi all. I'm wondering if anyone can tell me how long temporary
> session files stay on the server after the session has ended if
> session_destroy() is not called.
This is defined in php.ini (session.gc_maxlifetime), and you can write
your own garbage collection function (if you want) as part of
session_set_save_handler.
Hope that helps.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security Handbook
Coming mid-2004
HTTP Developer's Handbook
http://httphandbook.org/