atom feed6 messages in ru.sysoev.nginxRe: URGENT: cookies don't work with n...
FromSent OnAttachments
pk899Jun 5, 2011 9:18 am 
pk899Jun 5, 2011 10:04 am 
Cliff WellsJun 5, 2011 10:30 am 
Cliff WellsJun 5, 2011 10:59 am 
pk899Jun 5, 2011 11:18 am 
Cliff WellsJun 5, 2011 12:27 pm 
Subject:Re: URGENT: cookies don't work with nginx (proxying to apache!)
From:pk899 (ngin@nginx.us)
Date:Jun 5, 2011 10:04:17 am
List:ru.sysoev.nginx

pk899 Wrote:

-------------------------------------------------------

Hi. nginx is proxying to apache. Everything works.

Except cookies. My php pages seem just not to be able to set cookies!

Is there any specific directive that I should watch out for?

Could proxy_cache stuff be interfering with it maybe?

My nginx.conf file is here: http://tinypaste.com/18331

My proxy.inc file is here: http://tinypaste.com/a499c

Silly question: I am passing the header "Set Cookie". Is there a header for "Get Cookie"?

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.

In apache, we got over this by setting output_buffering = on.

What's the equivalent on nginx?

Thx

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,204130,204140#msg-204140