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

Why servlet is mostly used?

1232


I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?

2690


Explain the difference between get and post method in servlet?

1133


How to create war file?

1156


Explain servlet life cycle?

1122


What’s the difference between genericservlet and httpservlet?

1099


What is a servlet-to-servlet communcation?

1168


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

1143


What do you mean by chaining in servlet?

1028


Which is the methods of generated servlet?

1217


What is difference between PrintWriter and ServletOutputStream?

1289


What's the architecture of a servlet package?

1044


What do you mean by filter in servlet?

1003


What's the difference between servlets and applets?

1032


What is the type of method for sending request from http server?

1094