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 to set a cookie that is persisted only for the duration
fo the clients session?



How to set a cookie that is persisted only for the duration fo the clients session?..

Answer / janet

if u donot explicitly set a life time for the cookie using
cookie.setMaxAge(),the cookie is automatically deleted when
the user closes his browser.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Servlets Interview Questions

What is the purpose of dispatcherservlet properties?

0 Answers  


Does servlet have main method?

0 Answers  


What are the uses of servlet

0 Answers  


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

0 Answers  


When to use doget() and when dopost()?

0 Answers  


Is servlet a server side scripting language?

0 Answers  


Why setMaxAge() and getMaxAge() methods are used in Cookies?

2 Answers  


What is difference between server and servlet?

0 Answers  


what is session tracking?what are types of session tracking ?and when to cookies,when to use sessionmanagement,whent use url rewriting technique,plz explain briefly?

6 Answers   Satyam, TCS,


How can the session in servlet can be destroyed?

0 Answers  


How to invoke a Servlet?

2 Answers   Mastek,


Can we fetch the attributes related to a servlet on a different servlet?

0 Answers  


Categories