Welcome! Log In Create A New Profile

Advanced

Re: get cookie value which name contains hyphen

Maxim Dounin
December 20, 2017 08:14AM
Hello!

On Wed, Dec 20, 2017 at 05:01:35AM -0500, foxgab wrote:

> my app set a cookie which named like SESSIONID-MYAPP, i want to write the
> value of that cookie to log file, but i tried $cookie_SESSIONID_MYAPP,
> $cookie_SESSIONID-MYAPP, but i can't get what i want.

You wan't be able to access cookies with characters like '-' in
their names using the $cookie_* variables. Instead, consider
using the $http_cookie variable and extracting a particular cookie
yourself.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

get cookie value which name contains hyphen

foxgab December 20, 2017 05:01AM

Re: get cookie value which name contains hyphen

Maxim Dounin December 20, 2017 08:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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