spring - Redirect to home page if session is active -


how redirect user homepage if authenticated user accesses login page?

here config:

<sec:http authentication-manager-ref="authenticationmanageralias">     <sec:form-login login-page="/login.do" always-use-default-target="false" default-target-url="/interceptor.do" authentication-failure-url="/login.do?code=auth" />     <sec:access-denied-handler ref="accessdeniedhandler"/>     <sec:session-management session-authentication-error-url="/login.do" invalid-session-url="/login.do"> </sec:session-management>     <sec:logout invalidate-session="true" logout-success-url="/login.do"/>   </sec:http> 


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -