2kiran.g@gmail.com
Mar 8th, 2012, 05:13 PM
Hi All,
I am having an issue with spring security logout.
IN JSP I had written...
<c:url var="url" value="/j_spring_security_logout"></c:url>
<b> <a href="${url}">Logout</a> </b>
and in security.xml
<http auto-config="true" access-denied-page="/unauthorized">
<custom-filter position="PRE_AUTH_FILTER" ref="siteminderFilter" />
<intercept-url pattern="/login" filters="none" />
<intercept-url pattern="/" access="ROLE_USER,ROLE_ADMIN" />
<intercept-url pattern="/landingPage" access="ROLE_USER,ROLE_ADMIN"
requires-channel="any" />
<intercept-url pattern="/admin" access='ROLE_ADMIN' />
<form-login login-page="/login"
authentication-success-handler-ref="authenticationSuccessHandler"
authentication-failure-url="/login?login_error=1" />
<logout logout-url="/j_spring_security_logout" invalidate-session="true" logout-success-url="/login" />
</http>
when I click on logout link it is coming to login page. but when I click on back button and click some other link in the page... it is working..
Where am I wrong..?
Please help..
I am having an issue with spring security logout.
IN JSP I had written...
<c:url var="url" value="/j_spring_security_logout"></c:url>
<b> <a href="${url}">Logout</a> </b>
and in security.xml
<http auto-config="true" access-denied-page="/unauthorized">
<custom-filter position="PRE_AUTH_FILTER" ref="siteminderFilter" />
<intercept-url pattern="/login" filters="none" />
<intercept-url pattern="/" access="ROLE_USER,ROLE_ADMIN" />
<intercept-url pattern="/landingPage" access="ROLE_USER,ROLE_ADMIN"
requires-channel="any" />
<intercept-url pattern="/admin" access='ROLE_ADMIN' />
<form-login login-page="/login"
authentication-success-handler-ref="authenticationSuccessHandler"
authentication-failure-url="/login?login_error=1" />
<logout logout-url="/j_spring_security_logout" invalidate-session="true" logout-success-url="/login" />
</http>
when I click on logout link it is coming to login page. but when I click on back button and click some other link in the page... it is working..
Where am I wrong..?
Please help..