# Cookies and nginx

**URL:** <https://www.ruby-forum.com/t/cookies-and-nginx/186619>\
**Category:** NGINX\
**Created:** [April 9, 2010, 8:46pm UTC](https://www.ruby-forum.com/t/cookies-and-nginx/186619 "2010-04-09T20:46:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Behrens](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e9c0ed/32.png) [@Scott\_Behrens](https://www.ruby-forum.com/u/Scott_Behrens)\
**Post date:** [April 9, 2010, 8:46pm UTC](https://www.ruby-forum.com/t/cookies-and-nginx/186619/1 "2010-04-09T20:46:37Z")

</div>

Hello,

I am running nginx-0.8.35 on Fedora release 12, and I have a question  
about  
cookies. I am using nginx as a reverse SSL proxy to an IIS application  
(Team City). Every time I hit the proxy address the backend webserver  
tells  
me to (enable cookies). I tried to read though the documents on how to  
get  
cookies to work, but I can’t seem to get the backend server to work  
correctly with cookies. Any suggestions would be much appreciated.

Sincerely,

Scott Behrens

---

<div class="post-metadata">

**Author:** ![Scott\_Behrens](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e9c0ed/32.png) [@Scott\_Behrens](https://www.ruby-forum.com/u/Scott_Behrens)\
**Post date:** [April 11, 2010, 9:26pm UTC](https://www.ruby-forum.com/t/cookies-and-nginx/186619/2 "2010-04-11T21:26:32Z")

</div>

If anyone has any suggestions on this, please let me know. I am not  
certain on how to get this to work.

Thank-you,

Scott

---

<div class="post-metadata">

**Author:** ![Scott\_Behrens](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e9c0ed/32.png) [@Scott\_Behrens](https://www.ruby-forum.com/u/Scott_Behrens)\
**Post date:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/cookies-and-nginx/186619/3 "2010-06-17T16:22:37Z")

</div>

Scott,  
Disable proxy buffering and caching. This will resolve it.

I’ve ran into this issue several times but have yet to find a clear  
explanation how to enable cookies and allow caching.

Posted at Nginx Forum:

> **[Re: Cookies and nginx](https://forum.nginx.org/read.php?2,73231,98711#msg-98711)**
>
> Hello, I am running nginx-0.8.35 on Fedora release 12, and I have a question about cookies. I am using nginx as a reverse SSL proxy to an IIS application (Team City). Every time I hit the proxy address the backend webserver tells me to (enable...
