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 are the differences between the servletconfig interface and the servletcontext interface?

1179


How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

3388


What's the advantages using servlets than using cgi?

996


How can a servlet be used to generate plain text instead of html?

944


What is URL Encoding?

1169


How can we implement a jsp page?

1132


Is it possible to have a constructor inside the servlet?

1006


How is an application exception handling is done using a servlet?

1008


List out the difference between ServletConfig and ServletContext?

1037


How the servlet is loaded?

1072


What do you mean by mime type?

974


What are the ways to handle multi-threading in servlets?

1076


Why do we use sendredirect() method?

966


What is SingleThreadModel interface?

1142


What exception should be thrown when servlet is not properly initialized?

1000