Skip to content

Commit abcd076

Browse files
committed
Fix session bust
1 parent f3716ee commit abcd076

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Authenticator/PrimaryKeySessionAuthenticator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ public function clearIdentity(ServerRequestInterface $request, ResponseInterface
102102
/** @var \Cake\Http\Session $session */
103103
$session = $request->getAttribute('session');
104104
$userId = $session->read($sessionKey);
105-
SessionCache::drop($userId);
105+
if (is_scalar($userId)) {
106+
SessionCache::delete((string)$userId);
107+
}
106108
}
107109

108110
return parent::clearIdentity($request, $response);

0 commit comments

Comments
 (0)