Does the Cwebuser class in Yii encapsulate what information is encapsulated in the session by default?
However, it is sometimes necessary to encapsulate the information of the entire user table in the middle of the session. How do we extend this cwebuser class?
There is also a problem, is not the Yii framework magic method and reflection with a particularly much? I feel like I'm using both of these techniques.
Reply content:
Does the Cwebuser class in Yii encapsulate what information is encapsulated in the session by default?
However, it is sometimes necessary to encapsulate the information of the entire user table in the middle of the session. How do we extend this cwebuser class?
There is also a problem, is not the Yii framework magic method and reflection with a particularly much? I feel like I'm using both of these techniques.
Overwrite Cuseridentity's Authenticate method in your own useridentity class, Setpersistentstates writes other user attributes to the session after the login verification is successful