in reply to CGI::Session Expiration Woes

My solution to the same problem ( I use CGI::Session with CGI::Application in all my applications ) is to remember what the user asked for before they were asked to revalidate. Each time the user makes a menu selection - and goes to the dispatcher - I check for expiration, if the session has expired than I save the requested option oin the session and then attempt to re-validate the session. Once they are validated, they then get taken to the place they asked to go.

jdtoronto

Replies are listed 'Best First'.
Re^2: CGI::Session Expiration Woes
by dragonchild (Archbishop) on Aug 11, 2004 at 15:09 UTC
    I'd like to see that code, if you wouldn't mind. I would assume you use merlyn's two-tier sessioning structure?

    ------
    We are the carpenters and bricklayers of the Information Age.

    Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

    I shouldn't have to say this, but any code, unless otherwise stated, is untested