Commit 36e8868e authored by Clément OUDOT's avatar Clément OUDOT
Browse files

Add parameter cookieExpiration (close feature request #314368)

parent f8fb1635
...@@ -892,6 +892,7 @@ sub buildCookie { ...@@ -892,6 +892,7 @@ sub buildCookie {
-path => "/", -path => "/",
-secure => $self->{securedCookie}, -secure => $self->{securedCookie},
-httponly => $self->{httpOnly}, -httponly => $self->{httpOnly},
-expires => $self->{cookieExpiration},
@_, @_,
); );
if ( $self->{securedCookie} == 2 ) { if ( $self->{securedCookie} == 2 ) {
...@@ -903,6 +904,7 @@ sub buildCookie { ...@@ -903,6 +904,7 @@ sub buildCookie {
-path => "/", -path => "/",
-secure => 0, -secure => 0,
-httponly => $self->{httpOnly}, -httponly => $self->{httpOnly},
-expires => $self->{cookieExpiration},
@_, @_,
); );
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment