September 09, 2016 03:01AM
So i read that IE8 and older browsers do not support "Max-Age" inside of set-cookie headers. (but all browsers and modern support expires)

add_header Set-Cookie "value=1;Domain=.networkflare.com;Path=/;Max-Age=2592000"; #+1 month 30 days

Apprently they support "expires" though so i changed the above to the following but now the cookie says it will expire at end of every session.

add_header Set-Cookie "value=1;Domain=.networkflare.com;Path=/;expires=2592000"; #+1 month 30 days

how can i tell this to expire 1 month into the future all the examples i find mean i have to set a date manually what would mean restarting and editing my config constantly. (automated would be nice)

http://www.networkflare.com/
Subject Author Posted

add_header Set-Cookie The difference between Max-Age and Expires

c0nw0nk September 09, 2016 03:01AM

Re: add_header Set-Cookie The difference between Max-Age and Expires

itpp2012 September 09, 2016 03:41AM

Re: add_header Set-Cookie The difference between Max-Age and Expires

c0nw0nk September 09, 2016 04:57AM

Re: add_header Set-Cookie The difference between Max-Age and Expires

c0nw0nk September 09, 2016 05:38AM

Re: add_header Set-Cookie The difference between Max-Age and Expires

itpp2012 September 09, 2016 07:33AM

Re: add_header Set-Cookie The difference between Max-Age and Expires

c0nw0nk September 09, 2016 08:03AM

Re: add_header Set-Cookie The difference between Max-Age and Expires

c0nw0nk September 10, 2016 08:46AM

Re: add_header Set-Cookie The difference between Max-Age and Expires

Robert Paprocki September 09, 2016 12:10PM

Re: add_header Set-Cookie The difference between Max-Age and Expires

B.R. September 10, 2016 09:58AM

Re: add_header Set-Cookie The difference between Max-Age and Expires

c0nw0nk September 10, 2016 10:39AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 87
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready