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();
        }
    }