24 October 2009 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 (use this, it’s no longer 2009) Internet Explorer (ie6, ie7, and ie8) does not support “max-age”, while (mostly) all browsers support expires Max-age vs Expires, let’s dive in a l
![HTTP Cookies: What's the difference between Max-age and Expires? - Peter Coles](https://cdn-ak-scissors.b.st-hatena.com/image/square/adee83ddd8087c4dbc0bcfe4eba38744e83049e4/height=288;version=1;width=512/https%3A%2F%2Fmrcoles.com%2Fmedia%2Fimg%2Fmrcoles-poster.png)