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

Why the concept of single thread model interface is used?

1050


What do you mean by a filter and how does it work?

1009


What are the exceptions thrown by servlets? Why?

1247


What are the different session tracking techniques?

1244


What is life cycle of Servlet?

1126


What is the capacity the doget can send to the server?

1131


How do we call one servlet from another servlet?

1101


How do you deal property files in servlet?

1132


What is the use of servlet context?

1105


Write the code to get the server information in servlet.

1111


What is the difference between using getSession(true) and getSession(false) methods?

1106


What are the types of servlets? Explain

1329


What's the architecture of a servlet package?

1096


What is servlet invoker?

1087


What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?

1165