I just learned Yii for about a week. So please help me, this is the scenario:
I want to make another login form that can check the user status (active user should have the status value of 1, and inactive is 0) and also it should have it own table in database like this one–> user (id_user, username, password, lastlogintime, lastloginfrom, status) which is means that it have to record the lastlogintime and lastloginfrom.
So the question is, how to make a login form that can record lastlogintime and lastloginfrom, which also able to check the user status?
Yes you can use wiki article as suggest above by alirz23 and written by VibhaJadwani from This Link,
and you can code your requirement on login time in [font="Menlo, Consolas,"]UserIdentity[/font][font="Menlo, Consolas,"] [/font]class. Please refer suggested wiki article.