How to extract some value from cookie in nginx

后端 未结 3 1903
一向
一向 2021-02-02 06:28

I am new to Nginx and hope to get some help.

I want to extract certain data (certain fields set by my PHP scripts) from browser cookie in nginx so that I can log it. If

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-02 06:51

    You can access cookie values by using the $cookie_COOKIE_NAME_GOES_HERE variable.

    See Nginx Documentation

提交回复
热议问题