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

shingg's avatar

The session cookie always changing every request.

Hello, my session folder is currently filled with 19GB of session files. I find it odd because a single session file is only 1KB. I tried to investigate how it happen and how to fix it but currently I can't find a solution that works for me.

0 likes
5 replies
johnDoe220's avatar
Level 8

To disable it for testing, in Kernel.php comment out this line:

\App\Http\Middleware\EncryptCookies::class
shingg's avatar

@johnDoe220 this solves my problem! thank you. But is it really okay to leave it like that?

shingg's avatar

@sr57 yes I did. But I already tried to remove those lines of code but the issue still persist so I guess it was not the problem.

Please or to participate in this conversation.