[Catalyst] "You have been automatically logged out."

J. Shirley jshirley at gmail.com
Wed Feb 21 17:01:19 GMT 2007


On 2/21/07, Jonathan Rockway <jon at jrock.us> 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: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>

That isn't an automated logout system, in which he specifically asked
for a solution for.



More information about the Catalyst mailing list