# Get all logged in users?

**URL:** <https://www.ruby-forum.com/t/get-all-logged-in-users/125193>\
**Category:** Rails\
**Created:** [January 6, 2008, 9:35pm UTC](https://www.ruby-forum.com/t/get-all-logged-in-users/125193 "2008-01-06T21:35:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 6, 2008, 9:35pm UTC](https://www.ruby-forum.com/t/get-all-logged-in-users/125193/1 "2008-01-06T21:35:56Z")

</div>

Hi all, I’m fairly new to Ruby on Rails and I need some help on what  
is a fairly standard part of many web applications today.

I need a way to know all users who are currently logged in. This can  
be used for keeping track of your friends in the community etc…

I would appreciate any advice on what the best way to solve this would  
be in RoR.

Thanks,

Joel.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 6, 2008, 10:12pm UTC](https://www.ruby-forum.com/t/get-all-logged-in-users/125193/2 "2008-01-06T22:12:19Z")

</div>

this should help you  
[http://matt-beedle.com/2006/12/13/rails-how-to-find-out-who-is-online/](http://matt-beedle.com/2006/12/13/rails-how-to-find-out-who-is-online/)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 6, 2008, 10:18pm UTC](https://www.ruby-forum.com/t/get-all-logged-in-users/125193/3 "2008-01-06T22:18:15Z")

</div>

On Jan 6, 4:12 pm, Michal G. \<rails-mailing-l…@andreas-  
[s.net](http://s.net)\> wrote:

> ## this should help youhttp://matt-beedle.com/2006/12/13/rails-how-to-find-out-who-is-online/
> 
> Posted viahttp://www.ruby-forum.com/.

Thanks a lot Michal. You just made my weekend happy again 🙂
