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 different mode that servlets can be used?

1019


Which are the different ways you can communicate between servlets?

1001


Explain the concept of ssi ?

1071


Why servlet is faster than jsp?

1068


When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?

1062


How do we share data using 'getservletcontext ()?

1047


Why is Servlet so popular?

1072


What is the use of attribute in servlets?

1047


What is the difference between context parameter and context attribute?

1048


What is cookie in servlet?

1060


What is servlet and its advantages?

1050


Can you call a jsp from the servlet?

1022


Describe the phases of servlet lifecycle?

1071


What do you mean by url pattern in servlet?

1114


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

1105