protected function unfreeze()
    {
        if (null !== $this->frozenSessionData) {

            //$this->open();

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

            $this->data = $this->frozenSessionData;
            $this->frozenSessionData = null;
            $this->writeSession();
        }
    }
protected function unfreeze()
    {
        if (null !== $this->frozenSessionData) {

            //$this->open();

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

            $this->data = $this->frozenSessionData;
            $this->frozenSessionData = null;
            $this->writeSession();
        }
    }
protected function unfreeze ( ) { if ( null !== $ this -> frozenSessionData ) { //$this->open(); if ( $ this -> getIsActive ( ) ) { Reaction :: info ( 'Session unfrozen' ) ; } else { $ error = error_get_last ( ) ; $ message = isset ( $ error [ 'message' ] ) ? $ error [ 'message' ] : 'Failed to unfreeze session.' ; Reaction :: error ( $ message ) ; } $ this -> data = $ this -> frozenSessionData ; $ this -> frozenSessionData = null ; $ this -> writeSession ( ) ; } }
Starts session and restores data from temporary variable
Starts session and restores data from temporary variable