Level 1
Hey fellas, didnt anyone encouter this issue?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey, I have an issue, where the session is not presistent within redirection. funny is, that this happens only on my mobile, and not on my friends mobile, or not on desktops etc.
i use chrome on my LG G3,
the code is:
Route::get('/facebook/login', function() {
\Session::put('laravel_session_test', 'Sessions work!');
return redirect('/fblogin');
});
Route::get('fblogin', function(SammyK\LaravelFacebookSdk\LaravelFacebookSdk $fb) {
$val = \Session::get('laravel_session_test');
dd($this);
$login_link = $fb->getLoginUrl(['email','user_friends']);
return redirect($login_link);
});
on my pc, after going to facebook/login route, i get redirected and see "session worked". on my mobile, all i see is null.
i tried cookies driver, and file driver.
please help me :) thanks
Please or to participate in this conversation.