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 context in servlet?

980


What is the use of java servlet api?

975


How do you design microservices?

1019


What is URL Encoding?

1097


How can we refresh automatically when new data is entered into the database?

1046


What is called servlet container?

1035


What are the type of protocols used in httpservlet?

1021


Which java framework is most popular?

1066


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

1026


Explain the architechure of a servlet?

1058


Describe servlet?

980


What do you mean by interservlet communication?

1013


Why doesn’t a servlet include main()? How does it work?

1099


How can you use a servlet to generate a plain text instead of html?

1072


What is the difference between jsp and servlet life cycle?

1173