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

Can you send an authentication error from a servlet?

0 Answers  


Explain the methods of request dispatcher in servlet?

0 Answers  


What is servlet invoker?

0 Answers  


Is servlet a controller?

0 Answers  


What is called Session Tracking?

0 Answers  


Is there any need to shutdown the web server, if you want to modify a servlet?

3 Answers  


What is difference between cookies and httpsession?

0 Answers  


How to make sure a servlet is loaded at the application startup?

0 Answers  


What is Servlet Context?

5 Answers  


What are cookies and how will you use them?

2 Answers  


What is Generic Servlet and how it is different from Http Servlet?

5 Answers   Wipro,


when the several requests comes to server..how it manage the requests

4 Answers   iGate,


Categories