开发者

Does authlogic give session location information?

开发者 https://www.devze.com 2023-03-20 15:08 出处:网络
Let\'s say, for example, that my website has the following locations that a user can visit: /dashboard

Let's say, for example, that my website has the following locations that a user can visit: /dashboard /users/settings

I want the ability to detect that the user is viewing any of those pages.

Does authlogic have this build in? are there any alternatives?

I am using Google Analytics as a long-term (and better) solution. However, for admin stats, i'd like to show what part of a website that a particular user i开发者_JS百科s browsing.

Thanks


No, authlogic doesn't have this functionality built in because it has nothing to do with authentication. You'll need to do this yourself, which is very simple by using a before_filter in your controller(s) to record which action the user is visiting.

0

精彩评论

暂无评论...
验证码 换一张
取 消