I need to end the session automatically when the user is inactive for some particular time say for 10 minutes. We have a method in
HttpSession session=reque
Avoid manual code for that.
simply in web.xml //this will applied for whole application
web.xml
//this will applied for whole application
10
Detect browser close event and call invalidate method
if(session!=null) { session.invalidate(); }