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 the effective way to make sure all the servlets are accessible only when user has a valid session?

1062


How do you run a servlet?

1060


What are the difference between RMI and Servlets?

1565


Is that servlet is pure java object or not?

1119


What is difference between cookies and httpsession?

1095


Difference between doget and dopost?

1173


Explain get and post.

1111


What do you understand by mime type?

994


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

1108


What are different ways for authentication of servlet?

1089


Explain the difference between servletconfig and servletcontext in servlet?

1041


request parameter how to find whether a parameter exists in the request object?

1016


What is a server side include (ssi)

1157


Explain the working of service() method of a servlet.

966


What are the functions of the servlet container?

1628