开发者

How to find out currently logged in users in Rails 2.3.5?

Does any one know solution to tracking online users in Rails; when you have cookie based sessions? I 开发者_StackOverflow社区am using Rails 2.3.5. If yes please let me know.

Thanks, Atul


You haven't said how you're doing authentication, but I'm guessing that you have a controller that creates a session when a user logs in and destroys it when they log out again. You could have those actions also add and remove (respectively) a record from a database table to enable you to track each user.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜