PDA

View Full Version : session destroy callback (onSessionDestroy event)


Emil Ivanov
05-13-2007, 09:56 PM
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.