views:

14

answers:

0

I'd like to count (increment) each time a user visits my site. I'm using authlogic and none of the "magic" fields take care of this.

By visit I mean:
It counts only once when a user visits the site. So it should count when they login, but ALSO count for users who have the "remember me" set to true.

login_count table field only counts when the user explicitly logs in.

I've got code that counts with every session call (essentially every page view), but I don't want this.

Any ideas on how to best implement "one count per user visit"?

I know I could set my own cookie and check that, but figured there was a more elegant solution to this.

Thanks!