diff --git a/lib/WebGUI/HTTP.pm b/lib/WebGUI/HTTP.pm index a2a3f807e..45736b64c 100644 --- a/lib/WebGUI/HTTP.pm +++ b/lib/WebGUI/HTTP.pm @@ -159,15 +159,16 @@ The time that the cookie should remain in the browser. Defaults to "+10y" (10 ye sub setCookie { my $name = shift; my $value = shift; - my $ttl = shift; - $ttl = (defined $ttl ? $ttl : '+10y'); + my $ttl = shift; + $ttl = (defined $ttl ? $ttl : '+10y'); if (exists $session{req}) { my $cookie = Apache2::Cookie->new($session{req}, - -name=>$name, - -value=>$value, - -expires=>$ttl, - -path=>'/' - ); + -name=>$name, + -value=>$value, + # -domain=>'.'.$session{env}{HTTP_HOST}, + -expires=>$ttl, + -path=>'/' + ); $cookie->bake($session{req}); } }