Re: Are class variables session specific?

Frederick Cheung
2010-01-30T10:08:21Z

On Jan 30, 7:25 am, 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.

It will be the same for all requests handled by that particular
instances. If you have a pool of passenger/mongrel/thin/unicorn/etc
instances then each one would have a different value.

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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.