Support the ongoing development of Laravel.io →
Authentication Session
Last updated 2 years ago.
0

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

0

You should check why your dashboard is redirecting you back. Maybe a middleware?

0

yes auth middleware. but it should not redirect as i already logged in via ajax

0

have u sent the CSRF Token through ur ajax?

0

yes i sent

0

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

0

Sign in to participate in this thread!

Eventy

Your banner here too?

mubbashar mubbashar Joined 21 Dec 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.