private function unlockSession()
    {
        if ($this->redis instanceof \Redis) {
            // If we have the right token, then delete the lock
            $script = <<<LUA
            if redis.call("GET", KEYS[1]) == ARGV[1] then
                return redis.call("DEL", KEYS[1])
            else
                return 0
            end
LUA;

            $token = $this->redis->_serialize($this->token);
            $this->redis->eval($script, array($this->lockKey, $token), 1);
        } else {
            $this->redis->getProfile()->defineCommand('sncFreeSessionLock', FreeLockCommand::class);
            $this->redis->sncFreeSessionLock($this->lockKey, $this->token);
        }
        $this->locked = false;
        $this->token = null;
    }
private function unlockSession()
    {
        if ($this->redis instanceof \Redis) {
            // If we have the right token, then delete the lock
            $script = <<<LUA
            if redis.call("GET", KEYS[1]) == ARGV[1] then
                return redis.call("DEL", KEYS[1])
            else
                return 0
            end
LUA;

            $token = $this->redis->_serialize($this->token);
            $this->redis->eval($script, array($this->lockKey, $token), 1);
        } else {
            $this->redis->getProfile()->defineCommand('sncFreeSessionLock', FreeLockCommand::class);
            $this->redis->sncFreeSessionLock($this->lockKey, $this->token);
        }
        $this->locked = false;
        $this->token = null;
    }
private function unlockSession ( ) { if ( $ this -> redis instanceof \ Redis ) { // If we have the right token, then delete the lock $ script =  <<<LUA
            if redis.call("GET", KEYS[1]) == ARGV[1] then
                return redis.call("DEL", KEYS[1])
            else
                return 0
            end
LUA ; $ token = $ this -> redis -> _serialize ( $ this -> token ) ; $ this -> redis -> eval ( $ script , array ( $ this -> lockKey , $ token ) , 1 ) ; } else { $ this -> redis -> getProfile ( ) -> defineCommand ( 'sncFreeSessionLock' , FreeLockCommand :: class ) ; $ this -> redis -> sncFreeSessionLock ( $ this -> lockKey , $ this -> token ) ; } $ this -> locked = false ; $ this -> token = null ; }
Unlock the session data.
Unlock the session data .