Codeigniter: Php-redis driver setTimeout has deprecated

Created on 19 Aug 2019  路  6Comments  路  Source: bcit-ci/CodeIgniter

Message: Function Redis::setTimeout() is deprecated

Filename: drivers/Session_redis_driver.php

After read their official repository, turns out method "setTimeout" has been replaced with "expire" on this PR. Just tried to change drivers code and it works

Bug

Most helpful comment

Hi there! Just for reminder, the PR was merged. You could check that out 馃槃

All 6 comments

Message: Function Redis::setTimeout() is deprecated
Filename: drivers/Session_redis_driver.php

After read their official repository, turns out method "setTimeout" has been replaced with "expire" on this PR. Just tried to change drivers code and it works

I have same issue so i tried to replace "setTimeout" to "expire" but i almost have

ini_set(): A session is active. You cannot change the session module's ini settings at this time
session_start(): Failed to read session data: user (path: /var/lib/php/sessions)
this error message.

my redis server is alive but can not load redis..
how can fix this issue...?

Spec : Ubuntu16.04, NGINX(1.10.3), REDIS(3.0.6), php 7.3.8, php-redis

Maybe that's another issue even it is likely from the same redis driver. I don't know if it's related to new version of phpdriver, but looks like redis_driver has broken.

Should be solved by this PR 5816

Should be solved by this PR 5816

Thank you~

Hi there! Just for reminder, the PR was merged. You could check that out 馃槃

Thank you for your contribution @mchobbylong

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sarciszewski picture sarciszewski  路  5Comments

boblennes picture boblennes  路  4Comments

erikk1986 picture erikk1986  路  3Comments

cyberhck picture cyberhck  路  5Comments

rmdhfz picture rmdhfz  路  3Comments