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. |
Please login to continue.