<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -64,6 +64,9 @@ module Merb
     def delete(name, options = {})
       cookie = @_cookies.delete(name)
       options = Mash.new(options)
+      if domain = options[:domain] || Merb::Controller._session_cookie_domain
+        options[:domain] = domain
+      end
       options[:expires] = Time.at(0)
       set_cookie(name, &quot;&quot;, options)
       Merb.logger.info(&quot;Cookie deleted: #{name} =&gt; #{cookie.inspect}&quot;)
@@ -80,6 +83,9 @@ module Merb
     # :expires&lt;Time&gt;:: Cookie expiry date.
     def set_cookie(name, value, options)
       options[:path] = '/' unless options[:path]
+      if domain = options[:domain] || Merb::Controller._session_cookie_domain
+        options[:domain] = domain
+      end
       if expiry = options[:expires]
         options[:expires] = expiry.gmtime.strftime(Merb::Const::COOKIE_EXPIRATION_FORMAT)
       end</diff>
      <filename>lib/merb-core/dispatch/cookies.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4813273a78309d0578c4b9d208acf9b221899b01</id>
    </parent>
  </parents>
  <author>
    <name>Matthew Windwer</name>
    <email>matt@reframeit.com</email>
  </author>
  <url>http://github.com/reframeit/merb-core/commit/2206d1a5cce8114c80403912a5f3b77897ae96a0</url>
  <id>2206d1a5cce8114c80403912a5f3b77897ae96a0</id>
  <committed-date>2008-07-30T11:42:02-07:00</committed-date>
  <authored-date>2008-07-30T11:42:02-07:00</authored-date>
  <message>honor cookie domain when setting and deleting cookies</message>
  <tree>99b2f3f55b2e4d601348df8a98812ac19bf49afe</tree>
  <committer>
    <name>Matthew Windwer</name>
    <email>matt@reframeit.com</email>
  </committer>
</commit>
