>- see footer for list info -<
Hi Peter,

I used to handle things like this by just having a meta refresh set for 30 mins 
and 5 seconds that when this expired sent the user to a screen telling them 
they had automatically been logged out for security reasons and ensured any 
session variables were killed.

That might help and be simple enough. Not saying it is the best way but 
achieves the same goal.

Regards,

Lee


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Boughton
Sent: 12 March 2008 19:33
To: Coldfusion Development
Subject: [CF-Dev] Ajax with logged in systems

>- see footer for list info -<
Hi all,

We have a membership system that requires all users to login, and has an
imposed half hour timeout.
Currently any remote JS calls that happens after an idle timeout results in
JSMX alerting "Parsing Error: The value returned could not be evaluated."
and that's obviously not good. We should be properly handling the error and
redirecting to the login screen.

I'm planning to implement something that will allow us to properly catch
when logouts have occurred and handle things properly.
However, I figure it's a common enough situation that others might already
have thought up a solution, and instead of re-thinking the wheel I can save
my brain cells for my plans of world domination.

So yes, immediate reaction was simply for all JS requests to have
"ajax=true" added to the URL, and then in the authentication checking code,
if it finds that the URL contains that token, it should simply return blank
or zero or whatever, otherwise it continues on to wherever it was going.

Can anyone see any flaws with that, or have any better ideas on how to
handle this?


This is for a CF7 / FB5 application, and we're switching to jQuery (rather
than JSMX).


Thanks,

Peter
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<


_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to