Commit 4e398404 authored by Xavier Guimard's avatar Xavier Guimard

Return PE_SESSIONEXPIRED if needed (#595)

parent 52b2c8f9
......@@ -252,6 +252,20 @@ sub extractFormInfo {
'error' );
return PE_ERROR;
}
elsif ( $ret == PE_FIRSTACCESS
and $req->cookies->{ $self->conf->{cookieName} } )
{
push @{ $req->respHeaders },
'Set-Cookie' => $self->cookie(
name => $self->conf->{cookieName},
value => 0,
domain => $self->conf->{domain},
path => "/",
secure => 0,
expires => '-1d',
);
return PE_SESSIONEXPIRED;
}
return $ret;
}
......
Markdown is supported
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