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 procedure for initializing a servlet?

984


What is the major difference between servlet and applet?

946


What is cgi?

951


What is the directory structure of web application?

927


Explain get and post.

1059


What are the steps involved in placing a servlet within a package?

1033


Given the request path below, which are context path, servlet path and path info?

990


Is that servlet is pure java object or not?

1036


Should I override the service() method?

1044


How does Cookies work in Servlets?

1121


why we should override only no-agrs init() method.

1088


Which event is fired at the time of setting, getting or removing attribute from application scope?

1082


How to get the IP address of client in servlet?

1028


How can you use a servlet to generate a plain text instead of html?

1078


Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com

2132