Forum OpenACS Development: Re: making cookies on host node mappings work with ForceHostP and there's a CookieDomain setting

Torben,

Here's the patch against head (acs-tcl/tcl/utilities-procs.tcl)

*** utilities-procs.tcl	2009-11-27 17:33:59.000000000 +0800
--- utilities-procs-patched.tcl	2009-11-27 17:45:22.000000000 +0800
***************
*** 1932,1937 ****
--- 1932,1942 ----
          append cookie "; Expires=Tue, 01-Jan-1980 01:00:00 GMT"
      }
  
+     set root [root_of_host [ad_host]]
+     if { $root ne "" } {
+         set domain ""
+     }
+ 
      if { $domain ne "" } {
  	append cookie "; Domain=$domain"
      }