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
What are the life-cycle methods for a servlet?
What is called servlet mapping?
Is that servlet is pure java object or not?
How to get the actual path of servlet in server?
What is meant by Servlet? What are the parameters of service method?
Explain servlet events?
Define servlet mapping?
How can we invoke another servlet in a different application?
What is setattribute in servlet?
What is difference between PrintWriter and ServletOutputStream?
What is the directory structure of a war file?
What are the life cycle methods of the servlet?
What is the difference between sendredirect() and forward() in a servlet?
What is difference between cookies and httpsession?
Explain request dispatcher and its methods.