problem setting multiple cookies

Eric Wong normalperson at
Mon Jun 20 22:15:24 EDT 2011

Jason Su <jason at> wrote:
> I don't think it worked, but here's the output:
> {"X-Runtime"=>"174", "Content-Type"=>"text/html",
> "Content-Length"=>"1", "Set-Cookie"=>"first=;;
> path=/; expires=Thu, 01-Jan-1970 00:00:00 GMTsecond=1;
>; path=/; expires=Mon, 21-Jun-2021 01:22:23
> GMT\n_test_session=ef56a1c675e576bd0b922acb0027ebde;;
      ^-- this is suspicous, the _test_session= cookie *is* set

> path=/; HttpOnly", "Cache-Control"=>"no-cache"}
> Here is how the response header looks:
> Set-Cookie:first=;; path=/; expires=Thu, 01-Jan-1970
> 00:00:00 GMTsecond=1;; path=/; expires=Mon,
> 21-Jun-2021 01:32:26 GMT

And you got a second Set-Cookie: line with "_test_session" in there,

Any chance you could upgrade Rails to 2.3.11?  Some rails commits
since 2.3.8 look interesting:

Eric Wong

More information about the mongrel-unicorn mailing list