How can the session in servlet be destroyed?
Answer / Sanjit Choudhary
A session in a servlet can be manually destroyed by calling the invalidate() method on the HttpSession object. By default, sessions are time-bound and will automatically expire after a specified period of inactivity.
| Is This Answer Correct ? | 0 Yes | 0 No |
What do you mean by mime type?
What are different Authentication options available in Servlets.
What is the inter-servlet communication?
Should I override the service() method?
What is a servlet-to-servlet communcation?
What do you mean by servlet context?
What is the use of request dispatcher interface?
What is called Scriptlet?
What are different ways for authentication of servlet?
What is forward() and include() of servlets RequestDispatcher interface?
What are the annotations used in servlet 3?
What is Server-Side Includes?