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 are the objects involved when a servlet receives a call from client?

0 Answers  


How do you pass the data from one servlet to another servlet?

11 Answers   HCL,


How we can check in particular page the session will be alive or not

4 Answers   L&T, Symbiosis,


What are the types of ServletEngines?

1 Answers  


Why do we need a constructor in a servlet if we use the init method?

0 Answers  


If we disable cookies in our web page, what will happen?

6 Answers   Zensar,


Define servlet mapping?

0 Answers  


Why HttpServlet class is declared abstract?

0 Answers  


What is the difference between servlet and jsp?

0 Answers  


Why doesn’t a servlet include main()? How does it work?

0 Answers  


How do you design microservices?

0 Answers  


How a servlet is unloaded?

0 Answers  


Categories