added cookieTTL method which returns the time to live of cookies set in the config file.
This commit is contained in:
parent
05c8cad17a
commit
1b0c8da592
1 changed files with 12 additions and 0 deletions
|
|
@ -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";
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue