added cookieTTL method which returns the time to live of cookies set in the config file.

This commit is contained in:
Frank Dillon 2006-08-09 23:11:16 +00:00
parent 05c8cad17a
commit 1b0c8da592

View file

@ -237,6 +237,18 @@ sub getCookieName {
return $self->get("cookieName") || "wgSession";
}
#-------------------------------------------------------------------
=head2 getCookieTTL ( )
Returns the cookie time to live defined in the config file. Returns "10y" if one isn't defined.
=cut
sub getCookieTTL {
my $self = shift;
return $self->get("cookieTTL") || "+10y";
}
#-------------------------------------------------------------------