Do not try to delete session with double cookie in single session (#1059)

This commit is contained in:
Clément Oudot 2016-07-12 16:33:20 +00:00
parent 07c56321de
commit e5f360ea43

View File

@ -401,7 +401,9 @@ sub _deleteSession {
if ( $self->{securedCookie} >= 2 ) {
# Try to find a linked http session (securedCookie == 2)
if ( my $id2 = $session->data->{_httpSession} ) {
if ( $self->{securedCookie} == 2
and my $id2 = $session->data->{_httpSession} )
{
if ( my $session2 = $self->getApacheSession( $id2, 1 ) ) {
$session2->remove;
if ( $session2->error ) {