Welcome Guest, Not a member yet? Register   Sign In
Redis Session Driver Setup
#1

I'm trying to get the Redis Session drivers setup, but they don't seem to be working.
I get the error: NOAUH Authentication Required.
Here's the relevant code from Cache.php
PHP Code:
    public $redis = [
        'host' => "host is here ... removed for security",
        'password' => "password is here ... removed for security",
        'port' => "12037",
        'timeout'  => 0,
        'database' => 0,
    ]; 
Here's the relevant code from App.php
PHP Code:
public $sessionSavePath "same as host in Cache.php"
Anybody have any ideas why I'm getting that error? I'm giving it the same host and password I use to connect with the redis cli so I'm stumped.
BTW, I'm doing this on my local machine right now just to test whether or not I can connect before going into production. Maybe it will only connect in a production environment?? I don't know, that's why I'm here.
Reply
#2

Config/Cache.php is the config file for Cache.
It does not used in Session at all.

See https://codeigniter4.github.io/CodeIgnit...ler-driver
Reply




Theme © iAndrew 2016 - Forum software by © MyBB