title: Why can't find my Laravel session keys in Redis container?
body: <p>I have setup my Laravel application with docker, one container is dedicated to the app one for redis.</p>
  
  <p>I have setup Laravel to use Redis for session an caching.</p>
  
  <p>All works fine but if I enter my Redis container and try to list all keys like:</p>
  
  <pre><code> $redis-cli
   #KEYS *
  </code></pre>
  
  <p>It will return only key values used for caching not the session keys.</p>
  
  <p>The above is a doublecheck because actually from Laravel application I set session key and then dump like </p>
  
  <pre><code> &lt;?php dump(session()-&gt;all()); dump(Session::getDefaultDriver()); ?&gt;
  </code></pre>
  
  <p>and from the dump everything looks fine.
  I see my session keys and values data structures. 
      Session::getDefaultDriver() //returns "redis"</p>
  
  <p>So, by seeing Cache key:values inside redis container I assume that there's not a connection/docker container issues... Laravel is writing in the correct place. Redis default connection is shared by Cache and SEssion.</p>
  
  <p>In database.php I have:</p>
  
  <pre><code>'redis' =&gt; [
  'client' =&gt; 'predis',
  'default' =&gt; [
      'host' =&gt; env('REDIS_HOST', 'redis'),
      'password' =&gt; env('REDIS_PASSWORD', null),
      'port' =&gt; env('REDIS_PORT', 6379),
      'database' =&gt; 0,
  ],
  ],
  </code></pre>
  
  <p>In session.php I have </p>
  
  <pre><code> 'driver' =&gt; env('SESSION_DRIVER', 'redis'),
   ...
   'lifetime' =&gt; env('SESSION_LIFETIME', 120),
  </code></pre>
  
  <p>By seeing the dumps returning correct values in Laravel web application I'm assuming session is working properly and points to redis.</p>
  
  <p>What am I missing?</p>