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
Explain how does JSP handle run-time exceptions?
How does tomcat servlet container work?
What is meant by a web application
What is difference between PrintWriter and ServletOutputStream?
Is tomcat a servlet container?
What is new in ServletRequest interface ? (Servlet 2.4)
Is that servlet is pure java object or not?
Why filter is used in servlet?
Explain load on start-up and its importance?
What do you mean by cgi in servlet?
What is the advantage of Servlets when compared with other server side technologies?
What is called Scriptlet?
What are the two important api's in for servlets?
What are all the protocols supported by httpservlet?
The code in a finally clause will never fail to execute, right?