Support the ongoing development of →
Laravel Session
Last updated 2 years ago.

I would use the database session driver. Even though pricing on GCS seems to be free for ingress/egress within the cloud, I would be worried about unexpected fees for accessing GCS on every request.

The other option is to just trust the encryption of the default session cookies and use a fat session cookie. Or implement your own fat session cookie with JWT.

(Note that if GCS doesn't support file locking then both the file and database solutions have concurrency problems where you can lose session data.)


Sign in to participate in this thread!


Your banner here too?


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.

© 2024 - All rights reserved.