CodeIgniter Forums
Redis Session not working - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forum-6.html)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forum-17.html)
+--- Thread: Redis Session not working (/thread-74211.html)



Redis Session not working - nourmansur - 08-27-2019

Hey guys, 

I would like to report that Redis session is not working with the latest redis extension ver. 5.x .
The last version that i have it working with is version 4.3.0 , to install it write "pecl install redis-4.3.0" instead of plain "pecl install redis".
We need to have the driver updated to have it work with ver. 5.x and above.

Thanks.


RE: Redis Session not working - Jule - 09-07-2019

(08-27-2019, 04:30 PM)nourmansur Wrote: Hey guys, 

I would like to report that Redis session is not working with the latest redis extension ver. 5.x .
The last version that i have it working with is version 4.3.0 , to install it write "pecl install redis-4.3.0" instead of plain "pecl install redis".
We need to have the driver updated to have it work with ver. 5.x and above.

Thanks.

Hi nourmansur,

you can check on github the driver was corrected.

You can try with an override like this:

application / libraries / Session / drivers / Session_redis_driver.php

I was check and it's working well with extension php-redis 5.x and don't have any errors messages about the timeout and the session handler.


Regards,