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
How we can call a jsp from the servlet?
What is the servletconfig object?
How do you load an image in a Servlet?
Which application server is best for java?
What mechanisms are used by a Servlet Container to maintain session information?
What are the phases of the servlet life cycle?
What is cookie? Why is cookie used?
When Servlet is unloaded?
Which protocol will be used by browser and servlet to communicate
What is servlet name in web xml?
What are the phases of a servlet life cycle?
What is the
Differentiate between get and post?
What’s the difference between sendredirect and forward methods
What is the use of attribute in servlets?