Welcome Guest, Not a member yet? Register   Sign In
[config] "sess_cookie_name" ignored when using redis driver
#1

Hi all,

when I use redis as the session driver, the "sess_cookie_name" value is ignored. The key in Redis server is always starting with "ci_session:...", regardless of the sess_cookie_name value. Can someone tell me how to fix or bypass this? I really need different values for my different environments (dev, qa, production).

Thanks in advanced,
Matthias
Reply
#2

You can change the prefix by changing the value in your sess_save_path.

Code:
tcp://localhost:6379?prefix=dev
Code:
tcp://localhost:6379?prefix=qa
Code:
tcp://localhost:6379?prefix=production
Reply
#3

Thanks!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB