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...

when will cookie information destroy?

Answer Posted / balakrishna

cookie is a"small amount of data" that is set by the server
on the client.

we have setmaxAge() for destroy cookie.

1.cookie.setMaxAge(100)-->100 sec
If we set the max age of a cookie to 100 sec,the browser
holds the cookie for 100 sec even if we close the browser.

2.If we set max age value to negative value the browser hold
the cookie till we close the browser.

3.If we use setMaxAge(0) the browser will arase the cookie.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you use javascript in servlets?

1088


What's the use of servletcontext?

1146


What are the different ways we can maintain state between requests?

1098


Explain servlet life cycle?

1133


What are advantages of servlets over cgi?

1113


What do you mean by web applications?

1207


What is servlet and list its types?

1067


What is the structure of the http response

1176


What are different methods of session management in servlets?

1284


What is difference between get and post method?

1080


Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

1036


What's the advantages using servlets than using cgi?

1000


Which httpsession object is used to view and manipulate information about a session?

1183


What is webservlet?

997


How can a servlet be used to generate plain text instead of html?

954