protected function unfreeze()
    {
        if (null !== $this->frozenSessionData) {
            YII_DEBUG ? session_start() : @session_start();

            if ($this->getIsActive()) {
                Yii::info('Session unfrozen', __METHOD__);
            } else {
                $error = error_get_last();
                $message = $error['message'] ?? 'Failed to unfreeze session.';
                Yii::error($message, __METHOD__);
            }

            $_SESSION = $this->frozenSessionData;
            $this->frozenSessionData = null;
        }
    }
protected function unfreeze()
    {
        if (null !== $this->frozenSessionData) {
            YII_DEBUG ? session_start() : @session_start();

            if ($this->getIsActive()) {
                Yii::info('Session unfrozen', __METHOD__);
            } else {
                $error = error_get_last();
                $message = $error['message'] ?? 'Failed to unfreeze session.';
                Yii::error($message, __METHOD__);
            }

            $_SESSION = $this->frozenSessionData;
            $this->frozenSessionData = null;
        }
    }
protected function unfreeze ( ) { if ( null !== $ this -> frozenSessionData ) { YII_DEBUG ? session_start ( ) : @ session_start ( ) ; if ( $ this -> getIsActive ( ) ) { Yii :: info ( 'Session unfrozen' , __METHOD__ ) ; } else { $ error = error_get_last ( ) ; $ message = $ error [ 'message' ] ?? 'Failed to unfreeze session.' ; Yii :: error ( $ message , __METHOD__ ) ; } $ _SESSION = $ this -> frozenSessionData ; $ this -> frozenSessionData = null ; } }
Starts session and restores data from temporary variable
@since 2.0.14
Starts session and restores data from temporary variable