Getting active sessions


#1

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.