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 different mode that servlets can be used?
Which are the different ways you can communicate between servlets?
Explain the concept of ssi ?
Why servlet is faster than jsp?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
How do we share data using 'getservletcontext ()?
Why is Servlet so popular?
What is the use of attribute in servlets?
What is the difference between context parameter and context attribute?
What is cookie in servlet?
What is servlet and its advantages?
Can you call a jsp from the servlet?
Describe the phases of servlet lifecycle?
What do you mean by url pattern in servlet?
How can we refresh automatically when new data is entered into the database?