Support the ongoing development of Laravel.io →
Session
Last updated 1 month ago.
0
moderator Solution

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.

1
Solution selected by @driesvints

Thanks for your tip 👍

0

Sign in to participate in this thread!

LaraJobs

Your banner here too?

Veritexx Veritexx veritexx Joined 19 Jan 2020

Moderators

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

Your logo here?

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

© 2022 Laravel.io - All rights reserved.