How many ways to remove the session object in the container
Answer Posted / kishore
Session objects can be removed in three ways.
1> session.invalidate() - will remove all session objects
2> session.removeAtttribute(objName); - will remove the
specified object
3> session.setAtttribute(objName,null); - will remove the
specified object
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is cgi and what are its drawbacks?
What is called a session?
Is tomcat a servlet container?
What is url encoding and url decoding
What are common tasks performed by Servlet Container?
What are the functions of the servlet container?
What is the inter-servlet communication?
What do you mean by url pattern in servlet?
What is the major difference between servlet and applet?
The code in a finally clause will never fail to execute, right?
What is the process for chaining servlet?
Can a jsp be called using a servlet?
Explain servlet.
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
If a servlet is not properly initialized, what exception may be thrown?