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
How do you design microservices?
Difference between httpservlet and generic servlets?
What exception should be thrown when servlet is not properly initialized?
What are the life-cycle methods for a servlet?
Does servlet have main method?
How can you create a session in servlet?
What is servlet initializer?
What are the annotations used in servlet 3?
What is the importance of init() method in Servlet ?
What's the use of servletcontext?
Why the concept of single thread model interface is used?
Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com
Why jsp is better than servlet?
How can the session in servlet be destroyed?
What are its drawbacks of cgi?