How to check whether authorized user in the ajax request in laravel 5?
Friends, tell me why the ajax request Auth::check()=false, if the user is logged in?
If it matters, the data requests a model backbone, X-CSRF-TOKEN is correctly set.
1 answer
If I am not mistaken CSRF-TOKEN for other purposes, there is no record of something like laravel_session?
Not exactly sure when making Ajax requests, the cookie is marked as http_only is also sent to the server?
Find more questions by tags AJAXLaravel
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Session\Middleware\StartSession::class,
Without them started session ) - Joanny_Ward commented on July 9th 19 at 10:49