We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e457627 commit f83e530Copy full SHA for f83e530
Session/Storage/Handler/RedisSessionHandler.php
@@ -93,15 +93,15 @@ protected function doDestroy(string $sessionId): bool
93
94
if ($unlink) {
95
try {
96
- $this->redis->unlink($this->prefix.$sessionId);
97
-
98
- return true;
+ $unlink = false !== $this->redis->unlink($this->prefix.$sessionId);
99
} catch (\Throwable $e) {
100
$unlink = false;
101
}
102
103
104
- $this->redis->del($this->prefix.$sessionId);
+ if (!$unlink) {
+ $this->redis->del($this->prefix.$sessionId);
+ }
105
106
return true;
107
0 commit comments