/** Get current active user * @return System\User */ public function relogin() { $cookie = \System\User::COOKIE_USER; if ($this->user) { return $this->user; } if ($this->sess($cookie)) { $this->user = \System\User::find($this->sess($cookie)); } if (!$this->user) { $this->user = \System\User::guest(); } $this->user->get_rights(); }