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 are all the ways for session tracking?
What is the inter-servlet communication?
What is webservlet?
What is a cookie What is the difference between session and cookie
What is the difference between jsp and servlet life cycle?
Explain servlet events?
What are all the protocols supported by httpservlet?
What are the uses of servlet
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
What is life cycle of Servlet?
What’s the use of the servlet wrapper classes??
How do you create a cookie using servlet?
Who is responsible to create the object of servlet?
What methodology can be followed to store more number of objects in a remote server?
What is servlet collaboration?