/** * Get flash messa in Session * @param String $key */ public static function getFlashMessage($key) { $storage = new Storage(self::NAME); $session = $storage->getSession($key); if (!$storage->unsetSession($key, true)) { return false; } $attr = $session->getAttr($key); return $attr; }
public static function destroy() { $storage = new Storage(self::NAME); $storage->unsetSession("acl"); }