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 are the jobs performed by servlets?

769


Can filter be used as request or response?

730


How we can call a jsp from the servlet?

714


Define declaration.

810


What is cookies in servlet with example?

716


What are the new features added to servlet 2.5?

825


What is servlet? Explain

771


What do you mean by web applications?

846


what is servlet chaining?

822


What are the advantages of cookies?

810


What are the steps involved in placing a servlet within a package?

828


What is servlet initializer?

701


Why do we use sendredirect() method?

731


What is difference between server and servlet?

790


What's the advantages using servlets than using cgi?

725