public function getAllValues($lockSession = false) {

        if (!$this->sessionData || $lockSession) {
            $this->startSession();
            $this->sessionData = isset($_SESSION) ? $_SESSION : array();
            if (!$lockSession)
                session_write_close();
        }

        return $this->sessionData;
    }