forward port of HTTP setCookie patch

This commit is contained in:
Colin Kuskie 2005-11-14 21:04:34 +00:00
parent 25d260c0b4
commit 5c66da33c7

View file

@ -159,7 +159,8 @@ 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 || '+10y';
my $ttl = shift;
$ttl = (defined $ttl ? $ttl : '+10y');
if (exists $session{req}) {
my $cookie = Apache2::Cookie->new($session{req},
-name=>$name,