Re: [cgiapp] How do I implement this pattern: Resume interrupted POST after login

2008-12-02 Thread Michael Peters
Mike Tonks wrote: How about a javascript timer to take them back to the login form when they time out, avoiding the problem of them filling in the form with an expired session? Another option, if you're using Ajax, is to detect the timeout on the client side (in Javascript) and if they are tim

Re: [cgiapp] How do I implement this pattern: Resume interrupted POST after login

2008-12-02 Thread Mike Tonks
How about a javascript timer to take them back to the login form when they time out, avoiding the problem of them filling in the form with an expired session? Otherwise, CGI can be initialised from a hashref, which should save you needing to use anything as drastic as LWP. $query = new CGI( {

Re: [cgiapp] How do I implement this pattern: Resume interrupted POST after login

2008-12-02 Thread Clayton Scott
On Tue, Dec 2, 2008 at 10:28 AM, Michael Peters <[EMAIL PROTECTED]>wrote: > Clayton Scott wrote: > > I went as far as freezing the query and stuffing it into the session. >> Short >> of using LWP >> to rerun the POST what are my options? >> > > That's actually a pretty good option. You can't just

Re: [cgiapp] How do I implement this pattern: Resume interrupted POST after login

2008-12-02 Thread Michael Peters
Clayton Scott wrote: I went as far as freezing the query and stuffing it into the session. Short of using LWP to rerun the POST what are my options? That's actually a pretty good option. You can't just pass the extra POST params to the authentication request since they might mess it up (think

[cgiapp] How do I implement this pattern: Resume interrupted POST after login

2008-12-02 Thread Clayton Scott
Here is the scenario: 1. The user is logged in and accesses a form. 2. They walk away from the computer until their session has timed out 3. They come back and spend twenty minutes filling out the form 4. They POST the content of the form I want to prompt them for login and then resume the interr