Welcome! Log In Create A New Profile

Advanced

Nginx cookie map regex remove + character

March 24, 2017 05:18PM
So this is my map

map $http_cookie $session_id_value {
default '';
"~^.*[0-9a-f]{32}\=(?<session_value>[\w]{1,}+).*$" $session_value;
}


The cookie name = a MD5 sum the full / complete value of the cookie seems to cut of at a plus + symbol

What would the correct regex to be to ignore / remove + symbols from "session_value"

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

Nginx cookie map regex remove + character

c0nw0nk March 24, 2017 05:18PM

Re: Nginx cookie map regex remove + character

Francis Daly April 03, 2017 11:02AM

Re: Nginx cookie map regex remove + character

B.R. via nginx April 03, 2017 11:06AM

Re: Nginx cookie map regex remove + character

Francis Daly April 03, 2017 07:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 86
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready