renewAuthStatus() protected method

This method will try to determine the user identity using the [[idParam]] session variable. If [[authTimeout]] is set, this method will refresh the timer. If the user identity cannot be determined by session, this method will try to [[loginByCookie()|login by cookie]] if [[enableAutoLogin]] is true.
protected renewAuthStatus ( )
Beispiel #1
0
 /**
  * Logout user if it's blocked
  */
 public function renewAuthStatus()
 {
     parent::renewAuthStatus();
     /* @var $identity User */
     if ($this->identity instanceof User && !$this->identity->canSignIn() && !$this->isGuest) {
         $this->logout();
     }
 }