protected afterLogin ( yii\web\IdentityInterface $identity, boolean $cookieBased, integer $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. |