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 I know if java is running on linux?

1107


What are sessions in servlets?

1061


Explain the difference between get and post method in servlet?

1133


how the HTML data stored in web server?

2617


What is the structure of the http response

1164


What are the differences between servlet context vs servlet config?

1075


What are the difference between RMI and Servlets?

1558


How do servlets work?

1020


How can an existing session be invalidated?

1160


What is servlet in simple terms?

1013


What is the difference between Server and Container?

1242


What is servlet and its advantages?

1041


What are the types of servlets? Explain

1252


What's the difference between authentication and authorization?

1134


How can we create deadlock situation in servlet?

1425