How many ways to remove the session object in the container

Answer Posted / amitasite

Programmatically:
1. session.invalidate()
2. session.setMaxInteractiveIntervals(0);

Container will remove session if user is idle more than the
time specified in <session-timeout>time in
minutes</session-timeout> in web.xml

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is servlet name in web xml?

547


What is a servlet?

608


What do you mean by web applications? Explain web application directory arrangement?

536


How will you pass values from HTML page to the servlet?

552


Explain the architechure of a servlet?

602






Which java application server is the best?

545


What is the difference between Difference between doGet() and doPost()?

754


What is the use of servlet context?

527


When should you prefer to use doget() over dopost()?

661


What are the types of servlet?

662


What is setattribute in servlet?

552


What is servlet and list its types?

538


What are the objects involved when a servlet receives a call from client?

545


Is servlet a framework?

539


Explain how to improve Servlet Performance?

594