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
Why jsp is better than servlet?
What’s the difference between forward() and sendredirect() methods?
What are the life-cycle methods for a servlet?
What is difference between cookies and httpsession?
What is the difference between Servlets and Applets?
What do you mean by the servlet chaining?
What is java servlet session?
What is a servlet engine?
How we can get ip address of client in servlet?
Can we refresh servlet in client and server side automatically?
When servlet is loaded?
Elucidate servlet attributes and its scope?
Difference between GET and POST?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
How to handle exceptions thrown by application with another servlet?