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


Please Help Members By Posting Answers For Below Questions

What is meant by servlet? What are the parameters of the service method?

579


What's the servlet interface?

598


What are the life cycle methods of a servlet?

595


How can we create deadlock situation in servlet?

853


how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file

2088






What is the difference between servlet and filter?

532


Explain the difference between get and post method in servlet?

607


Can you use javascript in servlets?

604


How do you invoke a servelt?

628


Explain the custom jsp tags and the beans.

617


What is the purpose of inter-servlet communication?

594


How to rectify errors in java servlet while compilation?

522


What is servlet and how it works?

508


What is the use of request dispatcher interface?

571


Where do you define dispatcherservlet?

552