Example #1
0
 public static function getFlashMessage($key)
 {
     $storage = new Storage(self::NAME);
     $session = $storage->getSession($key);
     if (!$storage->unsetSession($key, true)) {
         return false;
     }
     return $session->getAttr($key);
 }
Example #2
0
 public static function destroy()
 {
     $storage = new Storage(self::NAME);
     $storage->unsetSession("acl");
 }