Laravel allows you to use a few different Session drivers. Redis and Memcache are the fastest options to use for your session driver so you'll find a lot of people using this option. The problem comes when you're using Redis as both the cache driver and the session driver.
'redis' => [ 'client' => 'predis', 'default' => [ 'password' => env('REDIS_PASSWORD', null), 'database' => 0, ], 'session' => [ 'password' => env('REDIS_PASSWORD', null), 'database' => 1, ], ], Now we need to tell redis to use this connection as the session.
/* |-------------------------------------------------------------------------- | Session Database Connection |-------------------------------------------------------------------------- | | When using the "database" or "redis" session drivers, you may specify a | connection that should be used to manage these sessions.