Skip to content

Commit 642f597

Browse files
committed
Invalidate the session ID to prevent reuse
1. Good logs in 2. Bad captures Good's session cookie 3. Good logs out 4. Session cookie no longer works 5. Good logs in a second time 6. ORIGINAL session cookie works (Bad is also signed in)
1 parent e292d79 commit 642f597

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Auth/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ public function logout()
686686

687687
$this->user = null;
688688

689-
Session::flush();
689+
Session::invalidate();
690690
Cookie::queue(Cookie::forget($this->sessionKey));
691691
}
692692

0 commit comments

Comments
 (0)