<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>

CC BY-SA 3.0
2016-06-16T06:37:20.163Z
For some reason I can't see redis as a Registered save handler in phpinfo()
Any tip to overcome this?
Erez Rabih
CC BY-SA 3.0
2016-06-17T09:28:04.443Z
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()
berkayunal
CC BY-SA 3.0
2016-06-15T10:43:50.643Z
2016-06-15T10:43:50.643Z
berkayunal
<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>

<session><redis>
Using PHP Redis as Session Store
# 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()  

---

