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
How to make sure a servlet is loaded at the application startup?
What is the difference between a generic servlet and http servlet?
Write a command to get actual path of a servlet to the server?
Is it possible to have a constructor inside the servlet?
What are the types of servlets? Explain
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
How do you design microservices?
Write a hello world program using servlets.
What is servlet invoker?
Why jsp is better than servlet?
List out the difference between ServletConfig and ServletContext?
Which event is fired at the time of setting, getting or removing attribute from application scope?
Whether thread can be used in servlets?
What is MIME Type?
What is meant by a web application