Darren Evans wrote:> Hi
>
> My application has many users. If I log in as "admin", then
someone else
> logs in as "fred", when I save something then it is updated by
"Fred"
> not "admin". i.e. The session variable used is the last one
registered.
>
> Cookies might be a way to solve this or I could store the session in the
> database....What do you think is the best way to overcome this in RoR
> and how?
>
> Any advice would be really appreciated.
>
> Regards
>
> Darren
Darren,
The whole point of the session stuff is to make it easy for your app to
"keep people separate and remember what each one is up to". I think
there must be something wrong with how you''re using the session
variables. Can you show us some code?
jp
--
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-/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
-~----------~----~----~----~------~----~------~--~---