Skip to content
Advertisement

Spring autherization http security redirection, session issue

I am using Spring http security(Enablewebsecurity) to manage sessions. But the issue I am facing is, whenever I start the application, the app is opening always home page instead of going to login page. The requirement here is if session is out, need to go login page. Also session needs to time out for 30minutes. Is there any wrong with below code,

JavaScript

Advertisement

Answer

For adding session management,

JavaScript

and in application property, you need to add session timeout.

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement