Our application based on Spring Security & Struts 2 runs under tomcat 6.
Here is security http config:
Our default login page /dashboard.action sends many ajax requests which receives json objects as the response:Code:<security:http auto-config="true"> ..... <security:form-login login-page='/login.action' authentication-failure-url="/login.action?login_error=1" default-target-url='/dashboard.action'/> </security:http>
If user does logout quickly after login, on next login sometimes he hit ajax json request action instead of the last visited page, and download file interface appears:
So how can I resolve this problem?
I can't use always-use-default-target="true", because project requirement is to remember last visited page and enter it after login.




Reply With Quote