@param string $sessionid

@return bool
@throws \Koldy\Config\Exception
@throws \Koldy\Exception
3435
public function destroy($sessionid)
    {
        if ($this->disableLog) {
            Log::temporaryDisable('sql');
        }

        try {
            $this->getAdapter()->delete($this->getTableName())->where('id', $sessionid)->exec();
            return true;

        } catch (DbException $e) {
            Log::emergency($e);
            return false;

        } finally {
            if ($this->disableLog) {
                Log::restoreTemporaryDisablement();
            }

        }
    }
374196
public function write(string $sessionId, string $sessionData)
    {
        return $this->getObject(\PG\MSF\Coroutine\File::class)->goWriteFile(
            "{$this->savePath}/{$this->sessionName}_{$sessionId}",
            $sessionData
        );
    }
135783
public function write($sessionId, $sessionData)
    {
        if ($this->_lock === false) {
            return $this->_fail();
        }

        $insertData = array(
            'id' => $sessionId,
            'ip_address' => $_SERVER['REMOTE_ADDR'],
            'timestamp' => time(),
            'data' => $sessionData
        );

        if (!$this->row_exists) {
            if ($this->newQuery()->insert($insertData)) {
                $this->_session_id = $sessionId;
                $this->row_exists = true;
                $this->_fingerprint = md5($sessionData);
                return $this->_success;
            }
        } else {
            if ($this->newQuery()->where('id', $this->_session_id)->update($insertData)) {
                $this->_session_id = $sessionId;
                $this->row_exists = true;
                $this->_fingerprint = md5($sessionData);
                return $this->_success;
            }
        }
        return $this->_fail();
    }
6798
public function read($sessionId)
    {
        $this->sessionExpired = false;

        $selectSql = $this->getSelectSql();
        $selectStmt = $this->db->query($selectSql)
                        ->bind(':id', $sessionId);

        $sessionRows = $selectStmt->row();

        if ($sessionRows) {
            if ($sessionRows->{$this->timeCol} + $sessionRows->{$this->lifetimeCol} < time()) {
                $this->sessionExpired = true;

                return '';
            }

            return is_resource($sessionRows->{$this->dataCol}) ? stream_get_contents($sessionRows->{$this->dataCol}) : $sessionRows->{$this->dataCol};
        }

        return '';
    }
494161
private function setSession($session, $sessionID)
    {
        // close current session
        $session->writeClose();
        // set session id (to value loaded from cache)
        $session->setSessionId($sessionID);
        // re-start the session
        $session->start();
    }
436427
public function deleteSession(string $sessionId)
    {
        $this->curl(
            $this->factoryCommand(
                "session/{$sessionId}",
                \WebDriver_Command::METHOD_DELETE
            )
        );
        return $this;
    }
1114072
public function forceDisconnect($sessionId, $connectionId)
    {
        Validators::validateSessionIdBelongsToKey($sessionId, $this->apiKey);
        Validators::validateConnectionId($connectionId);

        return $this->client->forceDisconnect($sessionId, $connectionId);
    }
302994
function delete_session($sessionid) {
        try {
            $param = new \Panopto\SessionManagement\DeleteSessions($this->auth, array($sessionid));
            $this->smclient->DeleteSessions($param);
        } catch (Exception $e) {
            throw new SoapFault('client', $e->getMessage());
        }
        return true;
    }
1055784
public function touch(string $sessionId)
    {
        $file = "{$this->savePath}/{$this->sessionName}_{$sessionId}";
        if (file_exists($file)) {
            return touch($file, time());
        } else {
            return $this->getObject(\PG\MSF\Coroutine\File::class)->goWriteFile(
                "{$this->savePath}/{$this->sessionName}_{$sessionId}",
                '{}'
            );
        }
    }
630115
public boolean isValid( @Nullable final String sessionId ) {
        return sessionId != null && _pattern.matcher( sessionId ).matches();
    }
487850
public function __tearup($sessionId = null)
    {
        $configuration = self::getRegistry()->getConfiguration()->session;

        $this
            ->logger(self::getRegistry()->getLogging())
            ->id($sessionId)
            ->clientIp($_SERVER['REMOTE_ADDR'])
            ->userAgent($_SERVER['HTTP_USER_AGENT'])
            ->domain($_SERVER['SERVER_NAME'])
            ->flagStatus('httpOnly', true)
            ->flagStatus('ssl', true);

        if (true === $configuration->autoinit) {
            $this
                ->init($configuration)
                ->start();
        }
    }
168553
public function read($sessionId)
    {
        $sessionId = $this->keyPrefix . $sessionId;
        $sessionData = $this->redis->get($sessionId);

        $this->redis->expire($sessionId, $this->maxLifetime);

        return $sessionData;
    }
729333
public function destroy($sessionId): bool
    {
        $identifier = $this->cryptProvider->makeSessionIdentifier($sessionId);

        try {
            $this->storageDriver->destroy($identifier);
            return true;
        } catch (Exception $e) {
            return false;
        }
    }
969186
public function destroy($sessionID): bool
    {
        $file = $this->savePath.DIRECTORY_SEPARATOR.'sess_'.$sessionID;
        $ret = \file_exists($file) ? @\unlink($file) : true;
        return $ret;
    }
330571
protected function setSessionId($sessionId) {
    $session = ObjectFactory::getInstance('session');
    $sids = $session->get(self::SIDS_SESSION_VARNAME);
    $sids[$this->serverCli] = $sessionId;
    $session->set(self::SIDS_SESSION_VARNAME, $sids);
  }
115191
public function touch($sessionId, $ip) {
		$probability = (int)Configure::read('Captcha.cleanupProbability');
		$this->cleanup($probability);

		$captcha = $this->newEntity(
			[
				'session_id' => $sessionId,
				'ip' => $ip,
			]
		);
		if (!$this->save($captcha)) {
			throw new BadMethodCallException('Sth went wrong: ' . print_r($captcha->getErrors(), true));
		}

		return $captcha->id;
	}
655890
public function session_write($sessionId, $sessionData)
    {
        $sessionData       = (!$sessionData || !is_array($sessionData)) ? [] : $sessionData;
        $this->sessionData = (!$this->sessionData) ? [] : $this->sessionData;

        $this->sessionData = array_merge($sessionData, $this->sessionData);
        $this->engine->set($this->sessionKey . $sessionId, $this->sessionData, $this->sessionLifeTime);

        return true;
    }