How to kill session when server stops

I did a project in java

, jsp

, servlets

. I have done session management on registration and logout. I ran into a problem here. When I DO NOT exit the application and stop apache tomcat server

mine and restart it again, my session does not kill. I want my session to disappear when the server stops. Can I do this in some .xml

custom files inside a directory apache tomcat

?

+3


source to share


1 answer


Just add / uncomment below line in "% Tomcat_Home% / conf / context.xml"

<Manager pathname="" />

      



This will avoid persisting sessions when the server shuts down.

Disable saving session

+6


source







All Articles