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 do I know if java is running on linux?
What are sessions in servlets?
Explain the difference between get and post method in servlet?
how the HTML data stored in web server?
What is the structure of the http response
What are the differences between servlet context vs servlet config?
What are the difference between RMI and Servlets?
How do servlets work?
How can an existing session be invalidated?
What is servlet in simple terms?
What is the difference between Server and Container?
What is servlet and its advantages?
What are the types of servlets? Explain
What's the difference between authentication and authorization?
How can we create deadlock situation in servlet?