/** * Restore the state of this singleton object from session variables. */ private static function _loadSession() { self::$_count = $_SESSION[__CLASS__ . '_count']; self::$_cache = $_SESSION[__CLASS__ . '_cache']; /* * Clear session variables to ensure that this function is * not called again. */ unset($_SESSION[__CLASS__ . '_count']); unset($_SESSION[__CLASS__ . '_cache']); unset($_SESSION['TRACE']); /* * Add divider between sessions */ self::$_cache[] = "::::::::::::::::::::::::::::::::::::::::"; }