From 7dcf4815118eb31e43aa2203217059e04917130b Mon Sep 17 00:00:00 2001 From: Matthew Wilson Date: Sat, 19 Nov 2005 22:41:44 +0000 Subject: [PATCH] some spacing. --- lib/WebGUI/HTTP.pm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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}); } }