web\User sendIdentityCookie()

sendIdentityCookie() protected method

Sends an identity cookie.

This method is used when $enableAutoLogin is true. It saves $id, auth key, and the duration of cookie-based login information in the cookie.

See also loginByCookie().

protected void sendIdentityCookie ( $identity, $duration )
$identity yii\web\IdentityInterface
$duration integer

Number of seconds that the user can remain in logged-in status.

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

Please login to continue.