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

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.)

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.