Answers.Body: <p>This may help:</p>
  
  <p>Add the following to the general.php</p>
  
  <pre><code>'cacheMethod' =&gt; 'redis',
  'overridePhpSessionLocation' =&gt; 'tcp://localhost:6379' 
  </code></pre>
  
  <p>Add the following to the index.php</p>
  
  <pre><code>ini_set('session.save_handler', 'redis')
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-16T06:37:20.163Z
Answers.Text: For some reason I can't see redis as a Registered save handler in phpinfo()
  Any tip to overcome this?
Answers.UserDisplayName: Erez Rabih
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-17T09:28:04.443Z
Answers.Text: Can you check if you got the following in the php.ini 
  
  `[Session]
  session.save_handler = redis
  session.save_path = "tcp://localhost:6379"
  session.use_cookies = 1`
  
  Also check if you are editing the right php.ini file "Loaded Configuration File" that is shown in phpinfo()
Answers.UserDisplayName: berkayunal
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-15T10:43:50.643Z
Answers.LastActivityDate: 2016-06-15T10:43:50.643Z
Answers.UserDisplayName: berkayunal
Body: <p>I'm trying to use php-redis as the session store to my craftcms site.
  What I've tried:</p>
  
  <ol>
  <li>apt-get install php5-redis</li>
  <li>Edited php.ini with the following:
  <code>
  session.save_handler = redis
  session.save_path = "tcp://redis:6379?auth=password”
  </code></li>
  </ol>
  
  <p>Still, I don't see any sessions saved in redis.</p>
  
  <p>Can anyone help? Thanks!</p>
  
Tags: <session><redis>
Title: Using PHP Redis as Session Store
ThreadText: # Using PHP Redis as Session Store
  
  (Asked by: username_0 on 2016-06-15)
  
  I'm trying to use php-redis as the session store to my craftcms site.
  What I've tried:
  
  1. apt-get install php5-redis
  2. Edited php.ini with the following:
     `session.save_handler = redis
     session.save_path = "tcp://redis:6379?auth=password”`
  
  Still, I don't see any sessions saved in redis.
  
  Can anyone help? Thanks!
  
  **Tags:** session, redis
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-06-15. Score: 5
  
  This may help:
  
  Add the following to the general.php
  
  ```
  'cacheMethod' => 'redis',
  'overridePhpSessionLocation' => 'tcp://localhost:6379' 
  
  ```
  
  Add the following to the index.php
  
  ```
  ini_set('session.save_handler', 'redis')
  
  ```
  
  > **Comments:**
  > **username_0**: For some reason I can't see redis as a Registered save handler in phpinfo() Any tip to overcome this?  
  > **username_1**: Can you check if you got the following in the php.ini   `[Session] session.save_handler = redis session.save_path = "tcp://localhost:6379" session.use_cookies = 1`  Also check if you are editing the right php.ini file "Loaded Configuration File" that is shown in phpinfo()  
  
  ---
  
  