web\IdentityInterface getAuthKey()

getAuthKey() public abstract method

Returns a key that can be used to check the validity of a given identity ID.

The key should be unique for each individual user, and should be persistent so that it can be used to check the validity of the user identity.

The space of such keys should be big enough to defeat potential identity attacks.

This is required if yii\web\User::$enableAutoLogin is enabled.

See also validateAuthKey().

public abstract string getAuthKey ( )
return string

A key that is used to check the validity of a given identity ID.

doc_Yii
2016-10-30 17:15:12
Comments
Leave a Comment

Please login to continue.