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 is the use of httpservletrequestwrapper and httpservletresponsewrapper?
What do you mean by url pattern in servlet?
Differentiate between the web server and application server?
What is new in ServletRequest interface ? (Servlet 2.4)
What is the difference between the http servlet and generic servlet?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
What is the difference between the include() and forward() methods?
What is servlet in simple terms?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
Is servlet a controller?
What is the requirement of servlet config and servlet context implemented and how are they implemented?
What is session tracking?
Elucidate servlet attributes and its scope?
Why is a constructor needed in a servlet even if we use the init method?
Explain session tracking and its importance?