Exemple #1
0
 /**
  * Check if a user is logged in or not.
  *
  * @return boolean
  */
 public function isLoggedIn()
 {
     if ($this->instance instanceof \Skinny\Storage) {
         if ($this->instance->get('identity') != false) {
             return true;
         }
     }
     return false;
 }
Exemple #2
0
 /**
  * Retrieve a value from the session
  *
  * @param string $name
  * @throws \Exception
  * @return value|boolean false for failure
  */
 public function get($name)
 {
     return $this->instance->get($name);
 }