From: noreply@... Date: 2005-08-02T04:58:18+09:00 Subject: [ ruby-Bugs-2199 ] WEBrick's cgi handler does not emit cookies properly when more than one cookie Bugs item #2199, was opened at 2005-08-01 21:52 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=2199&group_id=426 Category: Standard Library Group: None Status: Open Resolution: None Priority: 3 Submitted By: Xavier Neys (neysx) Assigned to: Nobody (None) Summary: WEBrick's cgi handler does not emit cookies properly when more than one cookie Initial Comment: When emitting several cookies, WEBrick's cgi handler joins them into a single Set-Cookie directive which can't be properly read back on the next visit. Running the same cgi under apache gives several Set-Cookie directives. The problem & solution seem to be in cgihandler.rb where cookies should be created separately. Please see attached file for full demonstration and suggested solution. Hth, Xavier ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=2199&group_id=426