private static function load() { if (!self::$storage) { N2Loader::import("libraries.session.storage"); self::$storage = new N2SessionStorage(); } }
public static function storeInSession() { if (self::$flushed) { N2Session::delete('error'); N2Session::delete('success'); N2Session::delete('notice'); } else { N2Session::set('error', self::$error); N2Session::set('success', self::$success); N2Session::set('notice', self::$notice); } }