vendredi 29 juillet 2016

How to set an array inside $_SESSION in Laravel 5?

I have this code:

Session::set('dt[global][temp][arrLanguage_selector]', $arrLanguage_selector);

and

Session::set('dt[global][env][country]', $country);

Later in others page I will try to get these values back with:

$global = Session::get('dt[global]');
$env= $global[env][country]ç
$lang = [temp][arrLanguage_selector];

But it is not working. It is returning null

What am I missing?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire