Laravel Octabe session issue
Greetings
I recently implemented Laravel Octane on my Mac and also in doing so in AWS Beanstalk.
But after a while I found a problem that happens after a while, and is that when it passes from the middleware to the controller, in the CONTROLLER does not find the session in the STATIC variable.
For example, in the MIDDLEWARE I verify the JWT token and create the session, when this finishes from that point onwards there are some HELPER in laravel that allows me to know who is logged in.
These are the two variables that can be used to obtain the logged in USER
Auth::id
auth()->guard('api')->user()
Both work correctly, but after a while in some REQUEST these variables are NULL.
My Question
Do you know what could be going on here?
The knowledge I have with Swoole
Is that the files are loaded in independent memory and I can believe that those HELPER of laravel STATICS do not access that information or data stored in another WORKER.
The worker is the way swoole works by saving the files already called, if this is not correct you can say so.
Please or to participate in this conversation.