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 is context in servlet?
What is the use of java servlet api?
How do you design microservices?
What is URL Encoding?
How can we refresh automatically when new data is entered into the database?
What is called servlet container?
What are the type of protocols used in httpservlet?
Which java framework is most popular?
What is the difference between the include() and forward() methods?
Explain the architechure of a servlet?
Describe servlet?
What do you mean by interservlet communication?
Why doesn’t a servlet include main()? How does it work?
How can you use a servlet to generate a plain text instead of html?
What is the difference between jsp and servlet life cycle?