I have read so many stack questions but still i cant fix my issue i have some data of array which i will store in session after successful login
session(['menuList' => $menuList]);
and
session(['pageList' => $fullPage]);
when user click logout button then i will do the following
session_destroy();
$request->session()->forget('pageList');
$request->session()->forget('menuList');
Session::flush();
$request->session()->flush();
Auth::logout();
but still if i print session value in login page session has not been destroyed. i dont know why it doesn't destroy
Even i given
public function __construct()
{
session_start();
}
Can any one help me how i can fix this issue
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire