Example #1
0
 /**
  * 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;
 }
Example #2
0
 public static function destroy()
 {
     $storage = new Storage(self::NAME);
     $storage->unsetSession("acl");
 }