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 request dispatcher and its methods.
Can you refresh servlet in client and server-side automatically?
What is meant by a web application
What is meant by servlet? What are the parameters of the service method?
Which interface must be implemented by all servlets?
What's the architecture of a servlet package?
What are the types of servlets? Explain
Define declaration.
What do you mean by session tracking?
What are the mechanisms used by a servlet container for maintaining session information?
What is a servlet context object?
Difference between java beans & servlets?
What is life cycle of Servlet?
What are the common methods that are included in the http servlet class?
What are the two important api's in for servlets?