URGENT: cookies don't work with nginx (proxying to apache!)

Cliff Wells cliff at develix.com
Sun Jun 5 22:00:11 MSD 2011

On Sun, 2011-06-05 at 13:04 -0400, pk899 wrote:

> I ran some tests, and it seems one of the issues is that if cookies are
> being set in a page, then the "header(location: xyz)' command does not
> work. 

Try setting the location header before setting the cookie:

header('Location: ...');
setcookie('mycookie', ...);


More information about the nginx mailing list