Skip to content

Commit 7c2c7d4

Browse files
committed
fix: patch up session unset
1 parent 0b7b3ad commit 7c2c7d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Http/Session.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ public static function set($key, $value = null)
9696
*/
9797
protected static function unsetSessionVar($key)
9898
{
99-
unset($_SESSION[$key]);
99+
static::start();
100+
$_SESSION = Anchor::deepUnsetDot($_SESSION, $key);
100101
}
101102

102103
/**

0 commit comments

Comments
 (0)