On May 27, 4:36 am, Sudhi Kulkarni <[email protected]>
wrote:
> Frederick Cheung wrote:

> How do I know whether rails has closed out and pushed the cookie back to
> client?

There's going to be a pretty narrow window after your action method
returns and before rails has got as far as session cleanup. I can't
think you'd gain anything by waiting for your thread to exit there
rather than in your action.

Fred
> If I add a join before exiting from the action something like
> below
>
> def execute
> t1 = Thread.new { #code
>                   session[:executing] ="done";
>                 }
>
> t1.join
> end
>
> In the above case the session variable is updated. How would I get this
> working if I want the session to be updated sometime later and still not
> in that function?
>
> Regards,
> Sudhindra
> --
> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to