[Backgroundrb-devel] accessing session data in worker
ezmobius at gmail.com
Mon Oct 16 20:22:53 EDT 2006
On Oct 16, 2006, at 2:55 PM, Bill Walton wrote:
> Is there something special I need to do to access session data in a
> I'm using an AR session store. I've been working with Ezra's
> tutorial, modifying it a little here and there to figure it out.
> So I changed the progress bar to a simple count-down in the worker
> which sends back the count to display in the view. No big deal.
> But if I try to access session data in the worker method, I get no
> count displayed in the view.
> Any ideas?
> Backgroundrb-devel mailing list
> Backgroundrb-devel at rubyforge.org
The session is not available in the workers. If you need a value
from the session then you must pass it into the new_worker call
-- Ezra Zygmuntowicz
-- Lead Rails Architect
-- ez at engineyard.com
-- Engine Yard, Serious Rails Hosting
-- Reliability, Ease of Use, Scalability
-- (866) 518-YARD (9273)
More information about the Backgroundrb-devel