Writes session data

@param string $sessionID
@param string $sessionData
@return bool
359879
public function write($sessionID, $sessionData): bool
    {
        $result = false;
        $file = $this->savePath.DIRECTORY_SEPARATOR.'sess_'.$sessionID;
        $handle = @\fopen($file, 'wb');
        if ($handle) {
            @\flock($handle, LOCK_EX);
            $result = @\fwrite($handle, $sessionData) !== false ? true : false;
            @\flock($handle, LOCK_UN);
            @\fclose($handle);
        }
        @\chmod($file, 0600);
        return $result;
    }
637698
protected function doWrite($sessionId, $data): bool
    {
        $this->sessionDataProvider->setData($data);
        $this->getFacade()->setEx($this->prefix . $sessionId, $this->sessionDataProvider, 'ex', $this->ttl);

        return true;
    }
269102
public function write($sessID, $sessData)
    {
        $hander = is_array($this->hander) ? $this->hander[0] : $this->hander;
        $expire = time() + $this->lifeTime;
        mysqli_query($hander, "REPLACE INTO  " . $this->sessionTable . " (  session_id, session_expire, session_data)  VALUES( '$sessID', '$expire',  '$sessData')");
        if (mysqli_affected_rows($hander))
            return true;
        return false;
    }
589234
public function destroy($sessionId): bool
    {
        $sql = 'DELETE FROM sessions WHERE id = :id';
        $params = ['id' => $sessionId];
        $this->db->delete($sql, $params);

        return true;
    }
1178799
public function write( $id, $data )
	{
		if ( !\CCFile::write( $this->file_path( $id ), serialize( $data ) ) )
		{
			\CCError::exception( new Exception( 'Could not write session file.' ) );
		}
	    return true;
	}
729333
public function destroy($sessionId): bool
    {
        $identifier = $this->cryptProvider->makeSessionIdentifier($sessionId);

        try {
            $this->storageDriver->destroy($identifier);
            return true;
        } catch (Exception $e) {
            return false;
        }
    }
537513
public function destroy($sessionId)
    {
        if (Config::get('session_user_loc') == 'db') {
            $this->handler->delete(Config::get('session_user_loc_table') . '-id-' . $sessionId, true, Config::get('session_user_loc_tableprefix'));
        } else {
            $this->handler->delete(Config::get('session_user_loc_tableprefix') . Config::get('session_user_loc_table') . '-id-' . $sessionId);
        }
        return true;
    }
470889
private void write(IoSession session, IoBuffer data) {
        IoBuffer dest = buffersMap.putIfAbsent(session,
                new IoBufferLazyInitializer(bufferSize));

        write(session, data, dest);
    }
893209
public function writeSession($id, $data)
    {
        // exception must be caught in session write handler
        // http://us.php.net/manual/en/function.session-set-save-handler.php#refsect1-function.session-set-save-handler-notes
        try {
            $fields = $this->composeFields($id, $data);
            $fields = $this->typecastFields($fields);
            $this->db->createCommand()->upsert($this->sessionTable, $fields)->execute();
        } catch (\Exception $e) {
            Yii::getApp()->errorHandler->handleException($e);
            return false;
        }

        return true;
    }
989894
private function readFromPHPSession($sessionID = true)
    {
        if ($sessionID) {
            if (isset($_SESSION[$this->_sessionName]) && $_SESSION[$this->_sessionName] != "") {
                $this->_session = $_SESSION[$this->_sessionName]->SessionID;
                return true;
            }
        }
        return false;
    }
268127
public function do_write($session_id, $data, $ttl)
    {
        $redis = is_object($this->_redis) ? $this->_redis : $this->_getRedis();
        return $redis->set($this->_prefix . $session_id, $data, $ttl);
    }
458486
public function updateSession($sessionId, $update)
  {
    return $this->put->path('/sessions/')->subpath($sessionId)->body($update);
  }
648667
public function expireNow($sessionId)
    {
        if ($sessionInformation = $this->getSessionInformation($sessionId)) {
            $sessionInformation->expireNow();
            $this->saveSessionInformation($sessionInformation);
        }
    }
295331
public function write(
        /*# string */ $session_id,
        /*# string */ $session_data
    )/*# : bool */ {
        $file = $this->getSessionFile($session_id);
        return $this->storage->put($file, $session_data);
    }
555476
public function refreshLastUsed($sessionId, $lastUsed = null)
    {
        if ($sessionInformation = $this->getSessionInformation($sessionId)) {
            if ($sessionInformation->getLastUsed() !== $lastUsed) {
                $sessionInformation->refreshLastUsed($lastUsed);
                $this->saveSessionInformation($sessionInformation);
            }
        }
    }
1282045
public function write(string $sessionId, string $sessionData)
    {
        $key = "{$this->sessionName}_{$sessionId}";

        return $this->redis->set($key, $sessionData, $this->getConfig()->get('session.maxLifeTime', 1440));
    }
988490
public function write(
        /*# string */ $session_id,
        /*# string */ $session_data
    )/*# : bool */ {
        $file = $this->getSessionFile($session_id);
        return file_put_contents($file, $session_data) !== false;
    }