Start an Event when a Session ends

From: Santinho (ms_at_simplicidade.com)
Date: 12/20/04

  • Next message: Sherm Pendley: "Re: Start an Event when a Session ends"
    Date: Mon, 20 Dec 2004 16:57:27 +0000
    
    
    

    Esteemed Perl Fellows,

    Is it possible to start an event when a Session ends, using Apache, mod_cgi and CGI::Session?

    For example:

    When a user enters one web page, I start one session and write a txt file. The txt file's name is the user's session ID. So far so good.

    If I have a button or a link to exit my site, and the user clicks it, I can safely delete the txt file. But, if the user closes his/her browser's window? The session is destroyed but I can't delete the file.

    Any way to do this as easy as in ASP (remember the global.asa file) ?
    Or any way at all?

    Note: I don't have mod_perl nor Apache::ASP :(

    Thanks for your time
    Miguel

    
    



  • Next message: Sherm Pendley: "Re: Start an Event when a Session ends"