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 the use of send redirect () method?
What do you mean by httpservlet and how it is different from the genericservlet?
Tell us something about servletconfig interface.
What is the structure of the http response
What is lazy loading and what is Generic Servlet Class?
What is the need of servlet filters?
Explain the difference between jsp and servlet?
How do we call one servlet from another servlet?
Which application server is best for java?
Why do you use session tracking in httpservlet?
When should you prefer to use doget() over dopost()?
What are the common methods that are included in the http servlet class?
Write a program to show the functionality of doget and dopost method?
Explain the difference between servletconfig and servletcontext in servlet?
Explain the features are in servlet 3?