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

i have a blade in which i have a div. the div gets the data from session. also on the same blade i have a button which makes an ajax call to a controller get data from db set it into the session. after the ajax call i have load the div of the blade to display the updated session. the issue is it works perfectly on local host but on server i need to click button twice. the div is not displaying updated session rather it displays the previous value.

Last updated 2 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.