note 32335 added to function.session-set-save-handler
| From: | atapi103 at hotmail dot com | Date: | Fri, 23 May 2003 20:44:02 +0000 |
| Subject: | note 32335 added to function.session-set-save-handler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-48922@lists.php.net to get a copy of this message | ||
If you are going to write your own session_set_save_handler then you will need to set
session.save_handler in your php.ini to user
session.save_handler = user
I experinced that my sessions were not being deleted after they expired so I used the example
session save handler above, and modified the gc (garbage colector).
I used the curent time time() minus the time the file was created filectime() and compared the value
to $maxlifetime
File last access time on my system does not conaine a time just a date. I use a FAT32 filesystem.
I found that this solved my problem and hope it will be usefull to someone.
----
Manual Page -- http://www.php.net/manual/en/function.session-set-save-handler.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32335
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32335&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32335&report=yes