Two clones of my Laravel app, run on two servers and they are connected to one database server. The app is accessed via a load balancer.
However, the problem is that when the system is access via load balancer, the user is automatically logged out after 2-3 minutes.
This does not happen when the system is access through the direct IP of one of the servers.
The Session driver is set to Database.
So, what's the problem here ? I'm not sure what piece of code should I put here as your aid. I only use .env file to set configurations.
BROADCAST_DRIVER=redis
CACHE_DRIVER=redis
SESSION_DRIVER=database
QUEUE_DRIVER=sync
Thanks!