java - how to kill the session on stopping of server -


i have made project in java, jsp, servlets. have done session management on login , logout processes. facing problem here. when not logout application , stop apache tomcat server , restart again, session not kill. want session vanished on stopping of server. can in .xml configurable files inside apache tomcat directory?

simply add/uncomment below line in "%tomcat_home%/conf/context.xml"

<manager pathname="" /> 

this avoid saving sessions on server shutdown.

disable session persistence


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -