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
Should I override the service() method?
What is war file?
How do cookies work in servlets?
What are the types of servlet?
What is ServletConfig object?
How to notify an object in session when session is invalidated or timed-out?
What are the benefits of using servlet over cgi?
How to get the path of servlet in the server?
What is difference between jsp and servlet?
How printwriter is different from servletoutputstream?
What is the difference between portlet and servlet?
Can filter be used as request or response?
Explain the custom jsp tags and the beans.
Differentiate between the get and post method
If my browser does not support cookie, and my server sends a cookie instance what will happen?