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 are the functions of Servlet container?
What is called servlet container?
What is servlet lazy loading?
What is http servlet in java?
What are the type of protocols used in httpservlet?
What’s the difference between sendredirect and forward methods
How do I use cookies to store session state on the client?
What's the architecture of a servlet package?
What is the life-cycle of servlets?
Which are the different ways you can communicate between servlets?
Difference between java beans & servlets?
What is the purpose of inter-servlet communication?
When servlet object is created?
List out the difference between ServletConfig and ServletContext?
What are the kinds of http requests?