Getting last login time for admin

Hello All. I am newbie to the beautiful Yii Framework. I have just started playing with it. Here I have made a side bar and above the sidebar there will be a welcome message for admin. When admin will login that message will only show. I have done that part. Now I want to place a message for last login time for admin. So when admin will login he can see the welcome message with last logged in time. So can someone tell me how to get the last login time in index page.Any help and suggestions will be highly appreciable.

You can add a field in User table to store this value. Or, if you have not a User table… create a LastLogin table (or something like that). Than get it in sidebar when you login.

is it possible to call lastvisit from Yii user module.If yes then how to do it?

[color="#006400"]/* moved to Yii 1.1 help forum /*[/color]