Sessions are not saving : Bug in Laravel core

Posted 11 months ago by shahidkarimi
session()->put('currency', $currency);


If I immediately dd the session it shows the new value. But in another place, it shows the old value means not saving. I have been facing this issue with every Laravel project.

I tried with all session drivers, redis, array, file and databse. Anybody, please give a permanent solution of this issue.

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.