How to get session time out message using Spring security

前端 未结 5 1489
悲哀的现实
悲哀的现实 2020-12-10 16:41

I want to get the session time out message when the session expires.Below is my spring-security.xml



        
5条回答
  •  粉色の甜心
    2020-12-10 17:16

    I had similar issue, like

    1. If you logged in with some user say zzzz
    2. You closed the browser
    3. Again you are trying to login with same user zzzz
    4. It failed to login with message for maximum session exceeded

    The code I have on my spring security file is:

    
    
    

    I solved this issue by adding the session timeout entry in web.xml file. I put the session timeout value as 5 min, build the application and deployed. Its working fine.

    Might be this will help someone.

    Thanks, Atul

提交回复
热议问题