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 called servlet mapping?
How can you push data from an Applet to a Servlet?
What is the capacity the doget can send to the server?
Tell us something about servletconfig interface.
What are the uses of servlets?
When should you prefer to use doget() over dopost()?
What are its drawbacks of cgi?
How do you configure a centralized error handler in servlets?
What is the disadvantage of cookies?
Can filter be used as request or response?
What is servlet in tomcat?
What are all the ways for session tracking?
What is a deployment descriptor?
What are different methods of session management in servlets?
What are the phases of a servlet life cycle?