Hello, i''ve stored my sessions in a session table and can acces them via: Session.all (id, session_id, data, c_at, u_at) also i can get my current session_id via: request.session_options[:id] Is there a possibility to find all request containing to every single session - to get an overview beyond the env of every session. Something like: Request.find_by_session_id(session_id).env Thanks for your answers ''till now. Hans -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Feb 11, 10:55 am, Hans Hartmann <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hello, > > i''ve stored my sessions in a session table and can acces them via: > > Session.all (id, session_id, data, c_at, u_at) > > also i can get my current session_id via: > > request.session_options[:id] > > Is there a possibility to find all request containing to every single > session - to get an overview beyond the env of every session. > > Something like: > Request.find_by_session_id(session_id).env >I''m not sure what you''re after - requests aren''t persisted anywhere (unless you''re doing something special to do that) Fred> Thanks for your answers ''till now. > > Hans > > -- > Posted viahttp://www.ruby-forum.com/.-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> I''m not sure what you''re after - requests aren''t persisted anywhere > (unless you''re doing something special to do that)I want to find a possibility to get the PATH_INFO of each session user. My first opinion to do that was to list the env of all sessions. The reason I want to do that is to forbid, that two session users can access an update form on the same time. I have to check on which site all session users currently are. -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Feb 11, 11:12 am, Hans Hartmann <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> > I''m not sure what you''re after - requests aren''t persisted anywhere > > (unless you''re doing something special to do that) > > I want to find a possibility to get the PATH_INFO of each session user. > > My first opinion to do that was to list the env of all sessions. > > The reason I want to do that is to forbid, that two session users can > access an update form on the same time. >I don''t think there''s anyway of doing this without you storing details of all requests (is there even a thing as ''the'' PATH_INFO? A user could have multiple windows) I think you''re approaching this wrong way. I would tackle this by having a flag saying that a record is being used/edited by someone else. Fred> I have to check on which site all session users currently are. > > -- > Posted viahttp://www.ruby-forum.com/.-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.