开发者

PHP not able to set cookies through Nginx

开发者 https://www.devze.com 2022-12-10 03:21 出处:网络
I\'ve got a PHP-fpm setup on nginx setup according to this article: http://interfacelab.com/nginx-php-fpm-apc-awesome/

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 co开发者_Go百科okies 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.


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!

0

精彩评论

暂无评论...
验证码 换一张
取 消