vendredi 1 juillet 2016

Session doesn't persist in laravel 5.1

Here's my AuthController@authentication

Session::put('active_user','USER_INFO');
Session::save();

When I am trying to access session in middleware Authenticate.php

Log::info(Session::get('active_user'));

i got nothing.

I used

Illuminate\Support\Facades\Session

Here's my route.php

Route::post('/login','AuthController@authenticate');

Thanks in advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire