protected static function _init() { if (is_null(self::$_singleton)) { self::$_singleton = new Saf_Registry(); } if (is_null(self::$_configuration)) { self::$_configuration = array(FACET_ROOT => array(), 'response' => array(), 'get' => $_GET, 'post' => $_POST, 'request' => $_REQUEST, 'session' => &$_SESSION, 'auth' => array()); } }
public static function logoutLocally() { if (array_key_exists('username', $_SESSION)) { unset($_SESSION['username']); } Saf_Registry::cleanSession(); }