register_session_gc_handler proposal
| From: | Emil Ivanov | Date: | Tue, 15 May 2007 17:53:29 +0000 |
| Subject: | register_session_gc_handler proposal | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-29447@lists.php.net to get a copy of this message | ||
Hi folks,
Sorry to bother you, as I know you are quite busy, but I have a problem and
maybe a elegant solution does not exist right now.
The case is simple:
A user is allowed to upload files to the server, which are store in a
temporary location and their filenames are stored in the session.
The user leaves the site and the session gets destroyed, but the files
remain untouched.
If I can hook to the gc session function that will solve my case, but
currently with session_set_save_handler I have to rewrite session handling,
which I don't need...
So a simple hook will be very useful.
I know there are problems as how will I know which entry has been
destroyed...
Regards,
Emil Ivanov
Sofia univesity