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


Please Help Members By Posting Answers For Below Questions

Explain is servlet mapping?

582


What is the type of method for sending request from http server?

598


What's the advantages using servlets than using cgi?

557


How do cookies work in servlets?

583


How do I know if java is running on linux?

607






What is servlet attributes and their scope?

596


What do you mean by deployment descriptor?

556


Difference between httpservlet and generic servlets?

608


What do you mean by httpservlet and how it is different from the genericservlet?

540


How do you create a cookie using servlet?

579


What are the advantages of Servlet over CGI?

670


What is http servlet? Explain with the help of an example.

581


What is Servlet API used for connecting database?

621


What is difference between server and servlet?

581


How do you define a servlet?

528