In vanilla PHP, I can set a session name using the below code;
$_SESSION['blog'] = array(
"email" => $_POST['email'],
"password" => $password,
"firstname" => $row ['firstName'],
"lastname" => $row ['lastName'],
"id" => $row ['id']
);
How can I do the same in laravel
. FYI I'm not talking about the default session name eg PHPSESSID
or laravel_session
. I have multiple session names for parts of my site such as web
, blog
, 'careers' and I name them just like the code above and able to check and access them individually. So one user can have all three sessions active at the same time but for different sections of the site.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire