Forum: Ruby on Rails getting active sessions

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
unknown (Guest)
on 2006-04-18 00:09
(Received via mailing list)
hi, i'm wondering if anyone knows a simple way to grab all the active
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
a message.

i'm using rails' default filesystem-based sessions. i found this post
describes something similar, but it requires changing to db-stored
which i'd rather not do:

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


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