On 2/21/07, Jonathan Rockway <[EMAIL PROTECTED]> wrote:
Ted Carnahan wrote: > I've been pondering an alternative that uses a JS timeout to do > something HTML-y, like a div appearing on the side of the window to tell > them. This probably still suffers from the "escape cancels timeout" > issue reported down-thread.I think the way most people do this is: 1) Do nothing with javascript 2) In /auto, check if the session is timed out 3) If so, print an error message instead of doing the full request Skip this check for the /login page, obviously. The idea is to let the user know why their action failed, not to pop up messages saying "something might fail in the future!" Plus it's easier to implement, and works with every browser. Regards, Jonathan Rockway -- package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do { $,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //, ";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup; _______________________________________________ List: [email protected] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
That isn't an automated logout system, in which he specifically asked for a solution for. _______________________________________________ List: [email protected] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
