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 / kishore

Session objects can be removed in three ways.
1> session.invalidate() - will remove all session objects
2> session.removeAtttribute(objName); - will remove the
specified object
3> session.setAtttribute(objName,null); - will remove the
specified object

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When servlet object is created?

1150


Explain the difference between servlet and cgi?

1160


What's the servlet interface?

1077


Explain the difference between jsp and servlet?

1067


What do you mean by web applications? Explain web application directory arrangement?

958


When should you prefer to use doget() over dopost()?

1149


Differentiate between the web server and application server?

1059


How do you define a servlet?

984


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

1137


Describe some assignments that are executed by servlet container?

1075


What is meant by a servlet?

1098


Name the different ways of session tracking.

1024


List out the difference between ServletConfig and ServletContext?

1039


Which event is fired at the time of setting, getting or removing attribute from application scope?

1134


What is the use of attribute in servlets?

1041