Welcome! Log In Create A New Profile

Advanced

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

June 05, 2011 01:04PM
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
Subject Author Posted

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

pk899 June 05, 2011 12:19PM

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

pk899 June 05, 2011 01:04PM

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

Cliff Wells June 05, 2011 01:32PM

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

Cliff Wells June 05, 2011 02:02PM

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

pk899 June 05, 2011 02:19PM

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

Cliff Wells June 05, 2011 03:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 203
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready