Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29447 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4009 invoked by uid 1010); 15 May 2007 17:53:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3994 invoked from network); 15 May 2007 17:53:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 May 2007 17:53:34 -0000 X-Host-Fingerprint: 89.190.198.137 unknown Received: from [89.190.198.137] ([89.190.198.137:6814] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 38/B7-39652-C93F9464 for ; Tue, 15 May 2007 13:53:33 -0400 Message-ID: <38.B7.39652.C93F9464@pb1.pair.com> To: internals@lists.php.net Date: Tue, 15 May 2007 20:53:29 +0300 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original X-Posted-By: 89.190.198.137 Subject: register_session_gc_handler proposal From: emil.vladev@gmail.com ("Emil Ivanov") 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