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

What mechanisms are used by a Servlet Container to maintain session information?

1147


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

1086


How can the session in servlet can be destroyed?

1163


Tell the new features added in servletrequest interface i.e. Servlet 2.4

1160


What are the key methods that are involved in processing of http servlets?

1090


What is the difference between servlet and jsp?

1107


What is the difference between Difference between doGet() and doPost()?

1277


Explain the difference between servlet and cgi?

1152


What is the difference between context parameter and context attribute?

1024


What is httpservlet and how it is different from genericservlet?

1083


What is the use of java servlet api?

1014


What are the various ways of session supervision in servlets?

984


Who is responsible for writing a constructor?

1242


What are the exceptions thrown by servlets? Why?

1151


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

1081