How many ways to remove the session object in the container
Answer Posted / sekhar babu
To remove the session object .
1. with the help of web.xml
<session-timeout>time in minutes</session-timeout>
2. in programatically
session.setMaxInactiveInterval(time in seconds)
to terminate immediately the session
use session.invalidate()
| Is This Answer Correct ? | 23 Yes | 0 No |
Post New Answer View All Answers
What are the steps that are involved in using the httpservlet class?
What is servlet and how it works?
What is the advantage of Servlets when compared with other server side technologies?
What is the need of servlet filters?
Explain in brief the directory structure of a web application?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
Explain request dispatcher and its methods.
how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file
What is a web container and what is its responsibility?
explain the advantages of servlet life cycle?
What is lazy loading and what is Generic Servlet Class?
What are the types of an http request?
What's the difference between authentication and authorization?
What is session tracking?
What is called servlet container?