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

ArchStanton's avatar

Session not persisting

On 4.2 in my controller

Session::put('mysession', 'yes');

in my blade

dd( Session:get('mysession') ) is empty - why is the session not storing?
````

0 likes
1 reply
Dave_Martin's avatar
Level 1

Have you navigated to a different page before trying to check for a session value? You can not set a session value and retrieve it on the same page.

Please or to participate in this conversation.