Set pdata domain also when removing cookie (#1829)

This commit is contained in:
Xavier 2019-07-05 06:43:11 +02:00
parent 6a579644f8
commit 88f75c42ed

View File

@ -61,21 +61,14 @@ sub handler {
name => $self->conf->{cookieName} . 'pdata', name => $self->conf->{cookieName} . 'pdata',
( (
%{ $req->pdata } %{ $req->pdata }
? ( ( ? ( value => uri_escape( JSON::to_json( $req->pdata ) ) )
$self->conf->{pdataDomain} : ( value => '', expires => 'Wed, 21 Oct 2015 00:00:00 GMT' )
? ( ),
value => uri_escape( JSON::to_json( $req->pdata ) ), (
domain => $self->conf->{pdataDomain}, $self->conf->{pdataDomain}
) ? ( domain => $self->conf->{pdataDomain}, )
: ( value => uri_escape( JSON::to_json( $req->pdata ) ), : ()
) ),
)
)
: (
value => '',
expires => 'Wed, 21 Oct 2015 00:00:00 GMT'
)
)
); );
push @{ $res->[1] }, 'Set-Cookie', $self->cookie(%v); push @{ $res->[1] }, 'Set-Cookie', $self->cookie(%v);
} }