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

Why setMaxAge() and getMaxAge() methods are used in Cookies?

Answer Posted / abhijitbaji

setMaxAge(), this function sets the maximum age of the
cookie.
The value of the maximum age is the lifetime of the cookie
in seconds.
It is a decimal non-negative integer.
When the age is greater than seconds of maximum age, the
client SHOULD discard the cookie.
A value of zero means the cookie SHOULD be discarded
immediately.


getMaxAge(), this function can be used to retrieve the
maximum age of the cookie.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

2188


Are Servlets Thread Safe? How to achieve thread safety in servlets?

972


What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

1069


Write the code to get the server information in servlet.

1066


What is the difference between a generic servlet and http servlet?

998


What is difference between GenericServlet and HttpServlet?

1175


Does servlet have main method?

1191


How do you load an image in a Servlet?

1196


What is string tokenizer?

1084


What is the purpose of dispatcherservlet properties?

1119


What is called Scriptlet?

1100


What are common tasks performed by Servlet Container?

1262


Why servlet is used as controller ? Not JSP? I want complete explation?

1136


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

1078


Why doesn’t a servlet include main()? How does it work?

1161