Session management is a crucial part for web applications requires user login. If session is not managed properly, the security of data is directly impacted.
Define session timeout in web.xml
In your Spring configuration file, add the following property:
Change the value in the session-timeout tag to the number of timeout minutes you want to set.