Generally you can''t store things that are not serializable. In this
case, Threads ;)
Other things might be file handles, sockets, database connections, etc.
Tony
On 2/11/06, shodhan <shodhan_sheth@persistent.co.in>
wrote:> Hi
> Can someone tell me what i *cannot* store in a session.
> For ex.
> class TempController < ApplicationController
>
>
> def index
> session[:thread]=Thread.new do
> loop{}
> end
> render(:inline=>"abc")
> p ''post rendering''
> return
> end
>
> end
>
> does not work. although the print at the end of the method is executed,
> the string ''abc'' is not rendered. and when i check the
session again
> session[:thread] returns nil.
> Can someone tell me what i am doing wrong, or what i need to read, to
> understand what is going wrong
> thanks
> shodhan
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>