R4R
Right Place For Right Person TM

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

previous previous previous
Question:
Why we are used setMaxAge() and getMaxAge() in Cookies ?

Question:Why we are used setMaxAge() and getMaxAge() in Cookies ?


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

By:Jalees
Date:

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

Post Your Answers


User Name:
Answers:

Related Links

  1. What is the use of setSecure() and getSecure() in Cookies ?
  2. How do you communicate between the servlets?
  3. What is Servlet chaining?
  4. How will you communicate from an applet to servlet?
  5. Can we call a servlet with parameters in the URL?
  6. How do servlets handle multiple simultaneous requests?
  7. Explain the directory structure of a web application?
  8. What is pre initialization of a servlet?
  9. What are the uses of ServletRequest?
  10. What are the uses of ServletResponse interface?
  11. How HTTP Servlet handles client requests?
  12. Is HTML page a web component?
  13. What is the web container?
  14. What is deployment descriptor?
  15. Do objects stored in a HTTP Session need to be serializable? Or can it store any object?
  16. How can you implement singleton pattern in servlets ?
  17. What is the difference between an application server and a web server?
  18. What is servlet exception?
  19. What is a WAR file?
  20. What is a servlet filter?

Question:Why we are used setMaxAge() and getMaxAge() in Cookies ?

Back Home Next

New Updates

Topics

Topics

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R