Hi,
I have a login program (PHP) that writes sessions after a successful login and then the user is redirected to a Laravel program. The SESSIONs should then be read out in this Laravel programme.
Unfortunately I get a message that the $_SESSION is not defined.
Do you have a tip for me?
Laravel doesn't use the native session handler from PHP.
The most clean way is to write a custom session driver see: https://laravel.com/docs/8.x/session#adding-custom-session-drivers
And / or search on packagist for a good package that does that for you: https://packagist.org/?query=laravel%20session
Another fast but less maintainable option is to add session_start()
to your Laravel application and use the $_SESSION
global variable directly.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community