Support the ongoing development of Laravel.io →
Session Cache Database

$cookie = Session::put('test','selected'); $test = Session::get('test'); dd($test); I'm getting selected but when I comment the first line out. I get NULL, It by right should be in the session already why when I refresh , the data isnt in session?|

I tried to change session storage type to database but when I check it, the payload is empty!

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.