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

Difference between httpservlet and generic servlets?

0 Answers  


How to get the current httpsession object?

0 Answers  


How can an existing session be invalidated?

0 Answers  


which method in doGet or doPost is use to send binary date to server

2 Answers   HCL,


How does Cookies work in Servlets?

0 Answers  


What is meant by session? Tell me something about httpsession class?

0 Answers  


What is meant by a web application

0 Answers  


What are the type of protocols used in httpservlet?

0 Answers  


Can a jsp be called using a servlet?

0 Answers  


Can you call a jsp from the servlet?

0 Answers  


Explain the steps involved in placing a servlet within a package?

0 Answers  


can v create a constructor 4 servlet?

7 Answers   Satyam,


Categories