AJAX Calls on expired Sessions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

AJAX Calls on expired Sessions

Esteban A. Maringolo
Hi, 

How do you handle the AJAX calls on an expired Seaside Session?

Now when the session has expired the ajax call doesn't work (I get an HTTP 403).

I would like to redirect the whole page to the login page when this happens. Is there a way to install a global handler or similar? (maybe at the jQuery level?)

Regards,

Esteban A. Maringolo

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: AJAX Calls on expired Sessions

Boris Popov, DeepCove Labs (SNN)

Esteban,

 

See JQueryInstance>>onAjaxError:, it’ll fire when 403 is returned and you can then redirect to the home page with some expiry indicator.

 

HTH,

 

-Boris

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Esteban A. Maringolo
Sent: January 20, 2014 12:47 PM
To: Seaside - general discussion
Subject: [Seaside] AJAX Calls on expired Sessions

 

Hi, 

 

How do you handle the AJAX calls on an expired Seaside Session?

 

Now when the session has expired the ajax call doesn't work (I get an HTTP 403).

 

I would like to redirect the whole page to the login page when this happens. Is there a way to install a global handler or similar? (maybe at the jQuery level?)

 

Regards,

 

Esteban A. Maringolo


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside