How to remove a cookie in Apache

后端 未结 4 561
广开言路
广开言路 2020-12-30 03:55

I need to remove a cookie from the HTTP request that gets to the server. Doing it on the client (that writes this cookie) or on the server (that reads it) is not an option.

4条回答
  •  囚心锁ツ
    2020-12-30 04:59

    With Apache > 2.2.4, you could have used :

    RequestHeader edit Cookie "^(.*?)ANY_COOKIE=.*?;(.*)$" $1$2
    

提交回复
热议问题