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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the life cycle methods of the servlet?

1091


What is the difference between get and post methods?

1050


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

1122


Explain url encoding in servlet?

1056


What is the use of servlet context?

1045


How is a servlet implemented in code?

1084


What are the difference between RMI and Servlets?

1567


What is webservlet?

998


Explain web application directory arrangement?

1070


Describe in brief RequestDespatcher?

1140


What is httpservlet and how it is different from genericservlet?

1104


Why servlet is mostly used?

1246


What is called servlet container?

1094


How printwriter is different from servletoutputstream?

1015


How are filters?

1045