Re: Are class variables session specific?

Erol Fornoles
2010-01-30T08:43:40Z

I believe class variables are shared between sessions and are unsafe
storage for session-specific information. If you''re looking for
session isolated variables which can be accessed anywhere in your app,
try using Thread.current.

On Jan 30, 3:25 pm, Ralph Shnelvar
<li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:
> I''m trying to wrap my head around what information is session
specific
> and what isn''t.
>
> If I do
>   User::x = 1
> will User::x == 1 for all sessions on the same machine?
>
> I think it is the same on the same, but I''d like confirmation.
> --
> 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.