You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alvaro Sanchez-Mariscal <al...@gmail.com> on 2007/08/21 19:35:54 UTC

Session timeouts and Ajax

Hi,

I'm facing the same problems as:

http://www.nabble.com/Refreshing-div-after-a-session-timeout-tf3918532.html#a11111127
http://www.nabble.com/-S2----inner-div%2C-session-timeout-and-login-page-tf2930534.html#a8193302
http://www.nabble.com/Handling-redirect-to-Login-page-on-session-timeout-for-ajax-requests-tf3652422.html#a10203012

Unfortunately, nobody has replied to those emails.

I have learned the following: if the request is being made "manually"
(dojo.io.bind), we are able to check the http status code (eg, 302,
redirected to login) and force a full window reload.

But if the request is being made via S2 ajax tags (ie, s:submit or
s:a), we do not have access to dojo.io.bind response.

How do you usually solve this?

Thank in advance.

Alvaro.

-- 
Alvaro Sanchez-Mariscal Arnaiz
Java EE Architect & Instructor
alvaro.sanchezmariscal@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org