How many ways to remove the session object in the container
Answer Posted / ashwin kumar j
session.invalidate() used to kill the session object,this
method is usually called, for ex: when we logoff from an
application.
and
session.removeAttribute()
| Is This Answer Correct ? | 16 Yes | 3 No |
Post New Answer View All Answers
What is the difference between servlet and filter?
What are the steps that are involved in using the httpservlet class?
What is context in servlet?
What is session tracking?
What are the phases of a servlet life cycle?
Where do you define dispatcherservlet?
What do you mean by interservlet communication?
What is servlet configuration?
What are some disadvantages of storing session state in cookies?
What if you need to span your transaction across multiple servlet invocations?
What are the phases of the servlet life cycle?
What is java servlet?
List out the difference between ServletConfig and ServletContext?
What is the purpose of inter-servlet communication?
Differentiate between the get and post method