/** * This method return a singleton instance of __SessionManager * * @return __SessionManager A singleton reference to the __SessionManager */ public static function &getInstance() { if (self::$_instance == null) { // Use "Lazy initialization" self::$_instance = new __SessionManager(); } return self::$_instance; }