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

AYP's avatar
Level 1

Sticky session for different Laravel version

I have few applications running on laravel 5.7 which are sharing the user session (session_driver=database) and trying to upgrade one of the application to newer Laravel version.

However i run into issue with user session. It seems the application upgraded with Laravel 6 always initialised new session id and that breaks the sticky session initialised earlier. I have also retrieve the initialised session id and pass it to this Laravel 6 app and do this: session()->setId($session_id); , but this ends up overwriting the session value.

Is there anyway we can share session between different Laravel version?

0 likes
0 replies

Please or to participate in this conversation.