Welcome! Log In Create A New Profile

Advanced

Re: Nginx overwrite existing cookies with add_header

August 25, 2016 04:06PM
I sorted out this problem now

Here was my soloution.

if ($host ~* www(.*)) {
set $host_without_www $1;
}
add_header Set-Cookie "logged_in=1;Domain=$host_without_www;Path=/;Max-Age=315360000";

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

Nginx overwrite existing cookies with add_header

c0nw0nk August 25, 2016 03:24PM

Re: Nginx overwrite existing cookies with add_header

c0nw0nk August 25, 2016 04:06PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 305
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