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 collaboration?
What do you mean by scope object and what are its types?
Difference between GET and POST?
Describe some assignments that are executed by servlet container?
Why do we use sendredirect() method?
Describe the phases of servlet lifecycle?
What is the major difference between context parameter and context attribute?
How httpservlet is different from the genericservlet?
What's the servlet interface?
What is servlet in simple terms?
How does Cookies work in Servlets?
How to upload a file to the server using servlet?
What are the servlet events?
What is difference between server and servlet?
Why is httpservlet declared abstract?