/** * 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; }
/** * 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); }