I want to force all pages on my WordPress setup to not set any cookies, except for the file and folder: wp-login.php and /wp-admin
# disable cookies globally
fastcgi_hide_header Set-Cookie;
if ($request_uri ~* "(/wp-admin/|/wp-login.php)") {
# how can I allow the Set-Cookie header here?
}
I would setup a cookieless subdomain but WordPress doesn't allow you to easily do that (hardcoded paths). I'm using NGINX 1.4.6 with FastCGI caching and php5-fpm