isnt session driver file or cookie same? i had mine set to file and everthing worked tho
Anyone facing SESSOIN related issues when deployed on Laravel Cloud?
I am having issues with Laravel Cloud.
First Issue
The default SESSION_DRIVER for Laravel Cloud is cookie. With this setting return back()->with('flash... doesn't seem to work always (works for some part of the code, doesn't work for others).
But when I set SESSION_DRIVER to database everything works just fine.
Second Issue
My app supports Passkey. On Laravel Cloud, regardless of the session driver, login works sometimes, and sometimes not - totally random. Seems like the the challenge stored in the session goes missing somehow.
The same app had no issue when I ran the applicaion on my own VPS on DO.
Interestingly, neither of these issues exist when Autoscaling is off. I would have assumed
SESSION_DRIVERbeingdatabaseorconfigwould be the right way to store session data when auto scaling is on.
Also, weidrly, when the app threw 500 error due to session data missing, this wasn't logged in the log section. So I had to temporarily enable
APP_DEBUGto catch it.
Please or to participate in this conversation.