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 the use of send redirect () method?

1080


What do you mean by httpservlet and how it is different from the genericservlet?

1045


Tell us something about servletconfig interface.

989


What is the structure of the http response

1168


What is lazy loading and what is Generic Servlet Class?

1073


What is the need of servlet filters?

1002


Explain the difference between jsp and servlet?

1060


How do we call one servlet from another servlet?

1037


Which application server is best for java?

1061


Why do you use session tracking in httpservlet?

1126


When should you prefer to use doget() over dopost()?

1147


What are the common methods that are included in the http servlet class?

1033


Write a program to show the functionality of doget and dopost method?

1212


Explain the difference between servletconfig and servletcontext in servlet?

1031


Explain the features are in servlet 3?

1047