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 seconds that the user can remain in logged-in status. If 0, it means login till the user closes the browser or the session is manually destroyed.

doc_Yii
2016-10-30 17:17:18
Comments
Leave a Comment

Please login to continue.