Welcome!
Log In
Create A New Profile
Home
>
Mailing Lists
>
Nginx Mailing List - English
> Topic
Advanced
Re: Nginx overwrite existing cookies with add_header
Previous Message
Next Message
Forum List
Message List
New Topic
Print View
c0nw0nk
August 25, 2016 04:06PM
Registered: 10 years ago
Posts: 210
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/
Reply
Quote
RSS
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