web\User $returnUrlParam

$returnUrlParam public property The session variable name used to store the value of $returnUrl. public string $returnUrlParam = '__returnUrl'

web\User afterLogin()

afterLogin() protected method This method is called after the user is successfully logged in. The default implementation will trigger the EVENT_AFTER_LOGIN event. If you override this method, make sure you call the parent implementation so that the event is triggered. protected void afterLogin ( $identity, $cookieBased, $duration )$identity yii\web\IdentityInterface The user identity information $cookieBased boolean Whether the login is cookie-based $duration integer Number of second

web\User $isGuest

$isGuest public read-only property Whether the current user is a guest. public boolean getIsGuest ( )

web\User $idParam

$idParam public property The session variable name used to store the value of $id. public string $idParam = '__id'

web\User $loginUrl

$loginUrl public property The URL for login when loginRequired() is called. If an array is given, yii\web\UrlManager::createUrl() will be called to create the corresponding URL. The first element of the array should be the route to the login action, and the rest of the name-value pairs are GET parameters used to construct the login URL. For example, ['site/login', 'ref' => 1] If this property is null, a 403 HTTP exception will be raised when loginRequired() is called. public string|arr

web\User $id

$id public read-only property The unique identifier for the user. If null, it means the user is a guest. public string|integer getId ( )

web\User $identityCookie

$identityCookie public property The configuration of the identity cookie. This property is used only when $enableAutoLogin is true. See also yii\web\Cookie. public array $identityCookie = ['name' => '_identity', 'httpOnly' => true]

web\User $identityClass

$identityClass public property The class name of the $identity object. public string $identityClass = null

web\User $identity

$identity public property The identity object associated with the currently logged-in user. null is returned if the user is not logged in (not authenticated). public yii\web\IdentityInterface|null getIdentity ( $autoRenew = true )public void setIdentity ( $identity )

web\User $enableSession

$enableSession public property Whether to use session to persist authentication status across multiple requests. You set this property to be false if your application is stateless, which is often the case for RESTful APIs. public boolean $enableSession = true