protected function isActive()
    {
        $setting = 'session.use_trans_sid';
        $current = ini_get($setting);
        if (false === $current) {
            throw new \UnexpectedValueException(sprintf('Setting %s does not exists.', $setting));
        }
        $result = @ini_set($setting, $current);
        return $result !== $current;
    }