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 do you mean by cgi and what are its drawbacks?
What do you mean by cgi in servlet?
Explain is servlet mapping?
What is a servlet engine?
What are different methods of session management in servlets?
How can I send user authentication information while making URL Connection?
I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>
What is the difference between genericservlet and httpservlet
Which event is fired at the time of session creation and destroy?
Difference between get and post in java servlets?
What are different ways for authentication of servlet?
What do you mean by request dispatcher in servlet?
What is called Scriptlet?
What is the use of httpservletresponsewrapper?
What are the annotations used in servlet 3?