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

brti's avatar
Level 3

Default session cookie not being set.

None of the default sessions are being set in my Laravel application, whether it be the session cookie, or the CSRF token. Has anyone had an issue similar to this before, or know how to fix this?

0 likes
1 reply
bobbybouwmann's avatar
Level 88

If you are using Laravel 5.2, did you place your routes in the web middleware group? This middleware group will start the session and enable cookies.

Please or to participate in this conversation.