On May 25, 12:06 am, PierreW <[email protected]> wrote: > Hi guys, > > I have been trying to access session data (I am using the > ActiveRecordStore option) from a background process (Workling in my > case - but I suspect it should be the same for others). It seems to me > it should be fairly obvious since I can pass the session_id to the > background and the session data is in the DB anyway. But I can't make > it to work. > > I looked around and saw a note on this group from Fred: > "you'll need to instantiate the appropriate subclass of > ActionController::SessionStore" but I don't understand this. >
in the case of active record store you can do ActiveRecord::SessionStore::Session.find_by_session_id( session_id).data If you wanted a version that would work no matter what the session store then you probably want to follow the trail of ActionController::AbstractStore Fred -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

