What one *cannot* store in a session?

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

Generally you can’t store things that are not serializable. In this
case, Threads :wink:

Other things might be file handles, sockets, database connections, etc.

Tony