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 lifecycle of a servlet?
What mechanisms are used by a Servlet Container to maintain session information?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
What is the difference between portlet and servlet?
Explain the servlet context.
Name the different ways of session tracking.
What is the difference between context parameter and context attribute?
How can you run a servlet program?
Explain the jar and war files in servlet?
Which java application server is the best?
What is servlet and its life cycle?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
How can we upload the file to the server using servlet?
What is servlet and how it works?
Explain the difference between jsp and servlet?