Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How many ways to remove the session object in the container

Answer Posted / ravikiran

1).request.getSession().invalidate();
2).request.getSession.removeAttribute("obj");
3).Adding the following code inside the web.xml
<session-config>
<session-timeout>mins</session-timeout>
</session-config>
4).calling the seMaxInactiveInterval(seconds);

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we go with database connection and log4j integration in servlet?

1122


What are the differences between the servletconfig interface and the servletcontext interface?

1111


What do you mean by request dispatcher in servlet? Also explain its methods.

1092


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

3344


Can we refresh servlet in client and server side automatically?

1001


What are the key methods that are involved in processing of http servlets?

1051


Explain how does JSP handle run-time exceptions?

1038


What is the use of request dispatcher interface?

962


What are the uses of servlet

1090


how the HTML data stored in web server?

2549


Differentiate between the get and post method

1005


Is tomcat a servlet container?

980


What is java servlet session?

917


How httpservlet is different from the genericservlet?

1064


What is difference between get and post method?

1006