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 is servlet mapping?
What is the type of method for sending request from http server?
What's the advantages using servlets than using cgi?
How do cookies work in servlets?
How do I know if java is running on linux?
What is servlet attributes and their scope?
What do you mean by deployment descriptor?
Difference between httpservlet and generic servlets?
What do you mean by httpservlet and how it is different from the genericservlet?
How do you create a cookie using servlet?
What are the advantages of Servlet over CGI?
What is http servlet? Explain with the help of an example.
What is Servlet API used for connecting database?
What is difference between server and servlet?
How do you define a servlet?