session destroy callback (onSessionDestroy event)
| From: | Emil Ivanov | Date: | Sun, 13 May 2007 17:51:30 +0000 |
| Subject: | session destroy callback (onSessionDestroy event) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-254906@lists.php.net to get a copy of this message | ||
Hi,
I need to do some clean-up when the session is destroyed or values are
removed from it (expired).
using session_set_save_handler does not work for me, as I don't want to
rewrite session handling, I just need to be notified when a value is
destroyed.
Regards,
Emil Ivanov
P.S. I'm dealing with temporary pictures, saved on the disk and their path
stored into the session and I need to delete them when they are no longer
needed.