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

What is servlet collaboration?

1108


What do you mean by scope object and what are its types?

1028


Difference between GET and POST?

1099


Describe some assignments that are executed by servlet container?

1036


Why do we use sendredirect() method?

940


Describe the phases of servlet lifecycle?

1033


What is the major difference between context parameter and context attribute?

1056


How httpservlet is different from the genericservlet?

1078


What's the servlet interface?

1041


What is servlet in simple terms?

978


How does Cookies work in Servlets?

1125


How to upload a file to the server using servlet?

958


What are the servlet events?

1015


What is difference between server and servlet?

1041


Why is httpservlet declared abstract?

1070