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 / ramu

cookie is small "amount of a data", the cookie is set by
client & server.
cookie is setmaxAge() .
For ex:-
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 ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of send redirect () method?

1094


What's the difference between servlets and applets?

1054


What are the types of servlets? Explain

1269


What are all the protocols supported by httpservlet?

1287


What is life cycle of Servlet?

1079


What are all the ways for session tracking?

1171


What are all the advantages of servlet over cgi?

1092


Describe in brief RequestDespatcher?

1142


What is lazy loading and what is Generic Servlet Class?

1086


How will you pass values from HTML page to the servlet?

1053


What are the difference between session and cookies in servlet? Explain

1046


What are the common methods that are included in the http servlet class?

1043


What are the uses of servlet and what is servlet chaining?

1098


Explain how to improve Servlet Performance?

1149


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

1122