CodeIgniter Forums
[config] "sess_cookie_name" ignored when using redis driver - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19)
+--- Thread: [config] "sess_cookie_name" ignored when using redis driver (/showthread.php?tid=74449)



[config] "sess_cookie_name" ignored when using redis driver - derMatze82 - 09-24-2019

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


RE: [config] "sess_cookie_name" ignored when using redis driver - jreklund - 09-25-2019

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



RE: [config] "sess_cookie_name" ignored when using redis driver - derMatze82 - 09-26-2019

Thanks!