web\User getIdentityAndDurationFromCookie()

getIdentityAndDurationFromCookie() protected method (available since version 2.0.9)

Determines if an identity cookie has a valid format and contains a valid auth key.

This method is used when $enableAutoLogin is true. This method attempts to authenticate a user using the information in the identity cookie.

See also loginByCookie().

protected array|null getIdentityAndDurationFromCookie ( )
return array|null

Returns an array of 'identity' and 'duration' if valid, otherwise null.

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

Please login to continue.