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

madprabh's avatar

Question on sessions table

Hey Folks,

I am using the database table "sessions" to store user sessions information. I was wondering for how long does it retain the sessions values? Does it depend on SESSION_LIFETIME?

The problem I see is in my sessions table, I don't see entires prior to "Dec 18th 2023". My app has been running longer than this, so I was wondering what controls this?

Any info on this would be very helpful.

0 likes
1 reply
Sinnbeck's avatar

You mean the expiration is at the end of this year? Or they were created in the future? But it would make sense that laravel somehow removes old session data, or the table would just grow forever (I haven't found out how yet)

Please or to participate in this conversation.