Some fixes regarding the cookie realm