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

fgilio's avatar

Dynamic session config

Hello!

I'm trying to set up the session.cookie value dynamically, and can not find a way. I've tried setting up a new provider extending \Illuminate\Session\SessionServiceProvider and even moving it down on app.providers, but nothing works. Sessions seem to be booted very early on the request, so I don't even have access to the DB from which I need to extract the data to set up session.cookie.

Does anyone knows a way to achieve this? Thanks!

0 likes
0 replies

Please or to participate in this conversation.