Oct 31st, 2008, 04:52 AM
DWR problem after timeout with Spring Security
I ran into a little issue while using DWR in a Spring web application. We've set a session timeout for X minutes. After the session is expired, the user is automatically redirected to the login page. In case a DWR call is attempted after the session expiry, the user is also redirected to the login page (which is good). But after he tries to login in, Spring will go to the last url before the expiry. In case this was a DWR call, the user receives a download popup to try downloading this DWR script call.
Is there a way to redirect back to the page where the DWR call is made instead of the call it self?
Thanks in advance.