Hi,

I suggest the addition of a new virtual method call in the run sub.

The &finish virtual method is called at the end of each run mode,
but before setting up HTTP headers.

I use this method to set a session cookie after each run mode.

sub run {

    ...

    # Process run mode!
    my $body;
    if (ref($rmeth) eq 'CODE') {
        ...
    }
    
    # <[EMAIL PROTECTED]> 2002/02/01
    # add finish virtual method
    $self->finish();

    # Set up HTTP headers
    my $headers = $self->_send_headers();

    ...
}

Is it a good idea ?

-- 
Jean-Marc Pennel <[EMAIL PROTECTED]>
http://jmpnet.free.fr/


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to