I have made a project in java
, jsp
, servlets
. I have done the session management on login and logout processes. I am facing a problem here. When I do NOT logout from application and stop my apache tomcat server
and restart it again, my session does not kill. I want my session to be vanished on stopping of server. Can I do this in some .xml
configurable files inside apache tomcat
directory?
Simply add/uncomment below line in "%Tomcat_Home%/conf/context.xml"
<Manager pathname="" />
This will avoid saving sessions on server shutdown.
Disable Session Persistence
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With