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;
    }
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;
    }
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 ; }
Get all values - return as array and close session to prevent threading locks.
Get all values - return as array and close session to prevent threading locks .