mercredi 24 mai 2017

How to make sessions persistent in laravel 5.4

I am able to create session temporarily but when navigating to any other page, the session goes away.

this is how I am assigning the session

session(['key' => $value ]);
session()->save();

The session sticks on the page load, but like i said, if i got to another page, the session does not stay persistent. Is there something I need to do to flag it to be persistent, or something with the config?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2qhLXb3
via IFTTT

Aucun commentaire:

Enregistrer un commentaire