How many ways to remove the session object in the container
Answer Posted / amitasite
Programmatically:
1. session.invalidate()
2. session.setMaxInteractiveIntervals(0);
Container will remove session if user is idle more than the
time specified in <session-timeout>time in
minutes</session-timeout> in web.xml
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
How do you invoke a servelt?
What’s the difference between sendredirect and forward methods
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
What is http servlet?
Difference between forward() method and sendredirect() method ?
How do you create a cookie using servlet?
Which are the different ways you can communicate between servlets?
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255
What is the use of httpservletrequestwrapper?
What are the uses of servlet
Differentiate between the web server and application server?
Which exception is thrown if the servlet is not initialized properly?
What is the use of servletconfig interface?
How to upload a file to the server using servlet?
request parameter how to find whether a parameter exists in the request object?