http://laravel.io/bin/6LwBP Even Auth::check in ajax method return true. but on browser after getting response when i redirect to dashboard. it redirect back to login page
You should check why your dashboard is redirecting you back. Maybe a middleware?
yes auth middleware. but it should not redirect as i already logged in via ajax
Hey, I just wanted to say there is nothing wrong with your ajax post, I have almost the same issue. After a redirect the auth is gone.. http://laravel.io/forum/12-22-2015-auth-session-killed-after-redirect-laravel-52
Hope this will help u: https://laracasts.com/discuss/channels/laravel/auth-session-killed-after-redirect-laravel-52
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community