# WEBrick cookies not persisting?

**URL:** <https://www.ruby-forum.com/t/webrick-cookies-not-persisting/82306>\
**Category:** Ruby\
**Created:** [January 19, 2007, 6:37am UTC](https://www.ruby-forum.com/t/webrick-cookies-not-persisting/82306 "2007-01-19T06:37:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ktheory](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Post date:** [January 19, 2007, 6:37am UTC](https://www.ruby-forum.com/t/webrick-cookies-not-persisting/82306/1 "2007-01-19T06:37:14Z")

</div>

Has anyone had any experience on mac os x with WEBrick and cookies not  
persisting? What I’m doing is pushing a cookie into the response obj of  
a webrick request. When another request comes in. The req.cookies is  
empty… ([])

Any ideas?

---

<div class="post-metadata">

**Author:** ![ktheory](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Post date:** [January 20, 2007, 12:17am UTC](https://www.ruby-forum.com/t/webrick-cookies-not-persisting/82306/2 "2007-01-20T00:17:22Z")

</div>

On Fri, Jan 19, 2007 at 02:37:16PM +0900, Aaron S. wrote:

> Has anyone had any experience on mac os x with WEBrick and cookies not  
> persisting? What I’m doing is pushing a cookie into the response obj of  
> a webrick request. When another request comes in. The req.cookies is  
> empty… ([])
> 
> Any ideas?

Have you tried looking at the headers returned from WEBrick? Try using  
LiveHTTPHeaders with firefox. That might help you figure out whats  
wrong.

[http://livehttpheaders.mozdev.org/](http://livehttpheaders.mozdev.org/)
