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

when the jsp page is translated to servlet?

5 Answers   HCL,


HTTP tunneling means what?

2 Answers  


What is java servlet?

0 Answers  


what is the difference between doGet() and doPost()?

6 Answers   TCS,


List the Different types of servlet?

0 Answers  


When a servlet accepts a call from a client, it receives two objects. What are they?

0 Answers  


What is a web container and what is its responsibility?

0 Answers  


Can you send an authentication error from a servlet?

0 Answers  


Why don't we write a constructor in a servlet?

0 Answers  


What is a server side include (ssi)

0 Answers  


How to read request headers from servlets?

0 Answers  


what is the difference between servlets and struts?

3 Answers  


Categories