Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Nevena98's avatar

Two session files are created when logging in and out

In Laravel's authentication system, when users log in and out quickly, two session files are being created instead of replacing the existing session file. Initially, when a user logs in, everything works fine. However, upon the second quick login attempt and log out, two session files are created. When the user logs out and refreshes the page, they are still logged in because of the presence of both session files.

0 likes
4 replies
Snapey's avatar

Try doing something that actually requires being logged in.

Please or to participate in this conversation.