Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

Why we are used setMaxAge() and getMaxAge() in Cookies ?
The "public void setMaxAge(int expiry)" method sets the maximum age of the cookie. After the specified time the cookie will be deleted.

The "public int getMaxAge()" method will return the maximum specified age of the cookie.