Hi all Does anybody know how to get active session list or list of active session ID in RubyOnRails? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
if you''re using Active Record Store, look at CGI::Session::ActiveRecordStore::Session Mike On 3/19/07, bioform <andrew.krasnoff-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi all > Does anybody know how to get active session list or list of active > session ID in RubyOnRails? > > Thanks > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Actually I used default store for session(as I understand it is file store). In any case I don''t want to have dependency from session store type. I saw many sites with "Now [N] users on site" - so I think exists standard way to define active session list. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
the default session store for the next version of rails will be cookies. You can follow the directions here: http://habtm.com/articles/2005/12/15/whos-online you should also look at sql session store, which is a very good replacement for ActiveRecord sessions: http://railsexpress.de/blog/articles/2006/09/15/sqlsessionstore-now-available-as-a-plugin Mike On 3/20/07, bioform <andrew.krasnoff-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Actually I used default store for session(as I understand it is file > store). > In any case I don''t want to have dependency from session store type. > I saw many sites with "Now [N] users on site" - so I think exists > standard way to define active session list. > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I don''t want to use database as session storage... I thought about this issue and I think that I can extend "new" and "delete" method of session(ActionController::Integration::Session) class. 1. in "new" method I will add new session to global session list; 2. in "delete" method I will remove session from this list. At current point I don''t know how to create variable that exists in all application live cycle. Andrew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---