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
Explain the difference between jsp and servlet?
What is MIME Type?
How will you pass values from HTML page to the servlet?
What are the types of servlet?
What is the structure of the http response
Can we use the constructor, instead of init(), to initialize servlet?
What is new in ServletRequest interface ? (Servlet 2.4)
Explain jsessionid?
Can a jsp be called using a servlet?
What is the use of request dispatcher interface?
When jsessionid is created?
How can we invoke another servlet in a different application?
What is servlet and its life cycle?
Explain servlet life cycle?
What are the types of an http request?