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
What is servlet name in web xml?
What is a servlet?
What do you mean by web applications? Explain web application directory arrangement?
How will you pass values from HTML page to the servlet?
Explain the architechure of a servlet?
Which java application server is the best?
What is the difference between Difference between doGet() and doPost()?
What is the use of servlet context?
When should you prefer to use doget() over dopost()?
What are the types of servlet?
What is setattribute in servlet?
What is servlet and list its types?
What are the objects involved when a servlet receives a call from client?
Is servlet a framework?
Explain how to improve Servlet Performance?