On Wed, Mar 20, 2013 at 10:48 AM, Colin Law <clan...@googlemail.com> wrote:
> On 20 March 2013 15:41, John Merlino <stoici...@aol.com> wrote:
>> instance variables are alive as long as the object instance is alive. My
>> question then would be from one http request to the next does the same
>> controller instance remain alive?
>
> No.  In addition, once you deploy, you cannot even assume that the
> server is still running.  Many systems will shut down the server if it
> is idle and re-start it when required.  Also remember that if user A
> makes a request then is it common that user B may make a request
> before the next request from user A.  So even if the same controller
> instance did stay alive the data for the two users would get mixed up.
>  Sessions get around this problem.

Why hello admin account, how do I love getting it for free :D

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to