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

What is servlet and how it works?

1045


Why are servlets used?

1088


Write a simple servlet program to print the contents of html.

1124


explain the advantages of servlet life cycle?

1039


What is cookie in servlet?

1125


What do you mean by a filter and how does it work?

1013


Difference between get and post in java servlets?

1081


Is java servlet still used?

1094


How the typical servlet code look like ?

1323


Who is responsible to create the object of servlet?

1254


How to commuincate between an applet and a servlet?

1104


What is the element?

1101


What is the functionality of actionservlet and requestprocessor?

1146


Difference between forward() method and sendredirect() method ?

1094


Name the different ways of session tracking.

1081