[Seaside] AJAX Calls on expired Sessions

Boris Slobodin, DeepCove Labs boris at deepcovelabs.com
Mon Jan 20 17:56:51 UTC 2014


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: seaside-bounces at lists.squeakfoundation.org [mailto:seaside-bounces at lists.squeakfoundation.org] 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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140120/65c1e431/attachment.htm


More information about the seaside mailing list