Welcome Guest, Not a member yet? Register   Sign In
Session: Error while trying to free lock for ci_session
#52

(This post was last modified: 09-04-2017, 03:28 AM by kionez.)

I've made a few change to my workaround:

replaced the "sleep(1)" with:
PHP Code:
$sleep_random = (rand(0,5)) * 100000;

usleep(500000+$sleep_random); 


and avoided to delete an unexistant key, replacing:


PHP Code:
if (isset($this->_redis$this->_lock_key) && $this->_lock


with:


PHP Code:
if (isset($this->_redis$this->_lock_key) && $this->_lock && $this->_redis->exists($this->_lock_key)) 
Reply


Messages In This Thread
RE: Session: Error while trying to free lock for ci_session - by kionez - 09-04-2017, 03:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB