Forum: Ruby on Rails getting active sessions

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ac31d0d6453b50ad6fdfe16742273424?d=identicon&s=25 unknown (Guest)
on 2006-04-17 22:09
(Received via mailing list)
hi, i'm wondering if anyone knows a simple way to grab all the active
session
objects in a system. i'm adding a messaging component to our app and i
want to
enable users who are online to see when they've been messaged --
messages are
associated with users, so basically what i want to do is go through the
sessions, find the one for a specific user, and reload it when they've
received
a message.

i'm using rails' default filesystem-based sessions. i found this post
that
describes something similar, but it requires changing to db-stored
sessions,
which i'd rather not do:
http://habtm.com/articles/2005/12/15/whos-online

aren't sessions held in memory somewhere? is there any simple way to
just get
them from memeory, rather than the filesystem or db?

john

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
This topic is locked and can not be replied to.