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 variables can be accessed across the sessions?

Answer Posted / mohan

we have to set the variable in session object.like
session.setAttribute("somename",varible name);
and then we can get this variable where we want in this
session
session.getAttribute("somename");

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different ways for servlet authentication?

1110


What is the major difference between context parameter and context attribute?

1116


What are sessions in servlets?

1066


Why session tracking is needed?

1031


What is load-on-startup in servlet?

1145


Explain session tracking and its importance?

1012


How to commuincate between an applet and a servlet?

1057


List out difference between a JavaBean from a Servlet?

1037


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

1141


What do you mean by mime type?

979


What is servlet in simple terms?

1025


Differentiate between the print writer and servlet output stream?

995


What are the steps that are required to handle the multi-threading?

1106


Elucidate servlet attributes and its scope?

1021


How can I send user authentication information while making URL Connection?

1006