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

To remove the session object .
1. with the help of web.xml
<session-timeout>time in minutes</session-timeout>
2. in programatically
session.setMaxInactiveInterval(time in seconds)

to terminate immediately the session
use session.invalidate()

Is This Answer Correct ?    23 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of httpservletrequestwrapper and httpservletresponsewrapper?

983


What do you mean by url pattern in servlet?

1077


Differentiate between the web server and application server?

1000


What is new in ServletRequest interface ? (Servlet 2.4)

974


What is the difference between the http servlet and generic servlet?

1098


Are Servlets Thread Safe? How to achieve thread safety in servlets?

926


What is the difference between the include() and forward() methods?

1035


What is servlet in simple terms?

977


hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code

2735


Is servlet a controller?

968


What is the requirement of servlet config and servlet context implemented and how are they implemented?

948


What is session tracking?

1155


Elucidate servlet attributes and its scope?

955


Why is a constructor needed in a servlet even if we use the init method?

1098


Explain session tracking and its importance?

967