Monday, March 28, 2016

HTTP Cookies: What's the difference between Max-age and Expires?

HTTP Cookies: What's the difference between Max-age and Expires?

Quick Answer:

Expires sets an expiry date for when a cookie gets deleted
Max-age sets the time in seconds for when a cookie will be deleted
Internet Explorer (ie6, ie7, and ie8) does not support “max-age”, while (mostly) all browsers support expires

Reference:

http://mrcoles.com/blog/cookies-max-age-vs-expires/

No comments: