Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sanjaysamant's avatar

Session in Lumen 5.3

I am creating a backend for mobile app in same lumen 5.3. Can anyone know how to use session while redirecting the page in lumen. It shows blank every time.

if(Hash::check($request->password, $user->password)){

                    session_id($user->password);
                    $_SESSION['email'] = $user->email;
                    $_SESSION['user_id'] = $user->id;
                    $_SESSION['success'] = "Loggin Successfully";

                    return redirect('/dashboard ');
                } 
0 likes
0 replies

Please or to participate in this conversation.