How to keep track of user logins

How do most of you keep track of the number of logins your website gets each day? Do you have a login table with a column for the userID and date? The current method I have, by keeping the last login date in the main user table, is not a good method I’m learning.

Thanks!

I have a seperate table where I store user login in history, where I store user login time, logout time and the Ip from which the user login. The table will have last three days record

Just curious, why does your table only show the last three days. Wouldn’t it be better to show the last 3 or 4 months? That way you can keep an eye on daily averages and such.