How many ways to remove the session object in the container
Answer Posted / kishore
Session objects can be removed in three ways.
1> session.invalidate() - will remove all session objects
2> session.removeAtttribute(objName); - will remove the
specified object
3> session.setAtttribute(objName,null); - will remove the
specified object
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is meant by a servlet?
How to notify an object in session when session is invalidated or timed-out?
List the Different types of servlet?
What is servlet and its use?
Explain the war file?
What do you mean by filter in servlet?
What is Servlet API used for connecting database?
What is the use of httpservletrequestwrapper?
Why servlet is faster than jsp?
Explain jsessionid?
What is difference between PrintWriter and ServletOutputStream?
What is servlet invoker?
Explain the role of dispatcherservlet and contextloaderlistener.
Write a program to show the functionality of servlets.
Explain the difference between a web server and a web container?