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

2016-09-10 Thread c0nw0nk
I am sure (well would hope) they would have the common sense to edit it to their own needs. B.R. Wrote: --- > I just hope that code won't be used by the owner of wwwooowww.wtf for > example. > --- > *B. R.* > > On Sat, Sep 10, 2016 at 2:46 PM, c

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

2016-09-10 Thread B.R.
I just hope that code won't be used by the owner of wwwooowww.wtf for example. --- *B. R.* On Sat, Sep 10, 2016 at 2:46 PM, c0nw0nk wrote: > Just fixed my problem completely now :) > > For anyone who also uses Lua and wants to overcome this cross browser > compatibility issue with expires and ma

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

2016-09-10 Thread c0nw0nk
Just fixed my problem completely now :) For anyone who also uses Lua and wants to overcome this cross browser compatibility issue with expires and max-age cookie vars. if ($host ~* www(.*)) { set $host_without_www $1; } set_by_lua $expires_time 'return ngx.cookie_time(ngx.time()+2592000)'; add_h