Cloudfare kill my sessions, except with one navigator ... ?!
Hey, I'll try to be clear, my website was working perfectly in local, but now in production, my sessions are created but do not persist. I've thinked about the cloudfare cache, it's now disable, ok, but what is really strange, is that on the "Brave" navigator, everything is ok, on a friend's IP. But with firefox, chrome, vivaldi... The sessions do not persist.
But for me, even with Brave, it doesn't work.
For exemple, in the Authenticate middleware, i got this :
protected function redirectTo($request)
{
if (! $request->expectsJson()) {
$request->session()->put('loginModal', 'yes');
return route('welcome');
}
}
And on welcome.blade.php, this : @if($errors->has('auth.email') OR (Session::get('loginModal') == 'yes')) $(function() { $('#loginModal').modal('show'); }); @php Request:session()->forget('loginModal'); @endphp @endif
In the middleware, i can dd() the session, but in blade, nothing.
Really strange, no ?
Help please... Thank you by advance
Please or to participate in this conversation.