tags:

views:

577

answers:

1

I've got a PHP-fpm setup on nginx setup according to this article: http://interfacelab.com/nginx-php-fpm-apc-awesome/

PHP is not able to set cookies in any browser visiting the server. It seems nginx is not passing on the Cookie header to the browser. I Googled around a bit, and found that I need to set fastcgi_pass_header Set-Cookie in the location/http block. I tried both blocks and it still doesn't work.

I'm looking for any help. Thanks.

+1  A: 

I was about to post the config file as suggested by Ramon, but it seems like it's working now. There was a bit of ambiguity between the server names of two server blocks. I cleared that up, and its working fine now :D

Thanks!

Karan