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 / 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


Please Help Members By Posting Answers For Below Questions

How do you invoke a Servlet? What is the difference between doPost method and doGet method?

1088


What is the use of send redirect () method?

1024


What is servlet? Explain

1010


Can we use the constructor, instead of init(), to initialize servlet?

1048


What are the differences between servlet context vs servlet config?

1021


what is multiple server?

2257


When a servlet accepts a call from a client, it receives two objects. What are they?

1189


How many servlet objects are created?

1011


Explain web application directory arrangement?

999


What is cookie? Why is cookie used?

1007


What is pure servlet?

1163


Why is http protocol called as a stateless protocol?

952


Why do you use session tracking in httpservlet?

1071


How to notify an object in session when session is invalidated or timed-out?

1029


What are the functions of Servlet container?

1059