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

drewjo's avatar

Session is trying to regenerate; affecting Session Cart table.

We are running into an issue with Sessions. We are using a session cart table that stores items for the user so they don't need to be logged in while adding things to their cart. However, it seems that when I test a page, a new session is created. Not on every request, but I can't seem to track down why and where it's trying to regenerate.

Does anyone have any idea how Sessions behave in laravel 5? I have 'lifetime' set to 120960 minutes, so it's definitely not expiring, yet it keeps creating new sessions in the database and I'm losing cart items.

Thanks!

0 likes
0 replies

Please or to participate in this conversation.