List active user sessions


We are using the following to manage sessions using memcache in our ruby app:

use Rack::Session::Memcache, :key => “rack:session”

I want to list the users who are currently logged in. Can you someone tell me how I can the sessions currently active? I could not find anything about it in the documentation.

Also, how do set a “maximum session timeout” for these sessions?



anyone any thoughts on this?