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 methodology can be followed to store more number of objects in a remote server?

2208


Explain the difference between get and post method in servlet?

1079


What is load-on-startup in servlet?

1070


What is getservletcontext?

988


How to get the actual path of servlet in server?

1170


How do you create a cookie using servlet?

1094


Define the life cycle of a servlets.

1005


What is servletconfig?

975


What's the use of servletcontext?

1096


What is URL Encoding?

1100


What is a servlet engine?

968


What are the types of servlet?

1217


List out the difference between ServletConfig and ServletContext?

986


What is the servletconfig object?

970


Is tomcat a servlet container?

980