How many ways to remove the session object in the container
Answer Posted / sekhar babu
To remove the session object .
1. with the help of web.xml
<session-timeout>time in minutes</session-timeout>
2. in programatically
session.setMaxInactiveInterval(time in seconds)
to terminate immediately the session
use session.invalidate()
| Is This Answer Correct ? | 23 Yes | 0 No |
Post New Answer View All Answers
What are the differences between the servletconfig interface and the servletcontext interface?
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255
What's the advantages using servlets than using cgi?
How can a servlet be used to generate plain text instead of html?
What is URL Encoding?
How can we implement a jsp page?
Is it possible to have a constructor inside the servlet?
How is an application exception handling is done using a servlet?
List out the difference between ServletConfig and ServletContext?
How the servlet is loaded?
What do you mean by mime type?
What are the ways to handle multi-threading in servlets?
Why do we use sendredirect() method?
What is SingleThreadModel interface?
What exception should be thrown when servlet is not properly initialized?