How many ways to remove the session object in the container
Answer Posted / shyamalendu prusty
If you are using HTTP Session then you can use
session.remove().
But if you are using some other ways for session management
let’s say cookies then you have to then you can setMaxAge
to zero for the cookie.
| Is This Answer Correct ? | 5 Yes | 9 No |
Post New Answer View All Answers
What do you mean by cgi?
Explain the lifecycle of a servlet?
What is the difference between a generic servlet and http servlet?
Explain the different ways for servlet authentication?
What is the use of servlet context?
What is a server side include (ssi)
What is the difference between get and post methods?
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
What is the difference between context parameter and context attribute?
What are the phases of a servlet life cycle?
What's the use of servletcontext?
Why servlet is used as controller ? Not JSP? I want complete explation?
Which httpsession object is used to view and manipulate information about a session?
What is servlet container?
How can the session in servlet can be destroyed?