Reduce header length when deleting cookies
-
The server I’m working on at the moment uses Apache with Nginx reverse proxying (the Plesk default setup). For some reason Nginx gets fussy about the size of the headers being sent, and when they’re too large I get a 502 Forbidden error.
Long story short, could the cookie blocker class perform a quick array_unique on
$this->delete_cookies_list
before looping through them and usingsetcookie
to create the headers? Because of the way this variable is generated I had an array 100 items long, but only had about 5 unique values in which were being sent as headers needlessly.Many thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Reduce header length when deleting cookies’ is closed to new replies.