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
What do you mean by scope object and what are its types?
Differentiate between the print writer and servlet output stream?
What is http servlet in java?
Describe servlet?
What are the jobs performed by servlets?
What is the disadvantage of cookies?
What's the architecture of a servlet package?
Explain mvc pattern.
If a servlet is not properly initialized, what exception may be thrown?
Write a servlet to upload file on server.
How a servlet is unloaded?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
What are the different types of servlets?
How do you deal property files in servlet?
What are the various ways of session supervision in servlets?