Sessions with new threads

Hi,

I forked off a thread using Thread.new. That thread is supposed to
change a session variable. When I check the session variable, it had
changed inside the thread. However, this change does not persist after
the thread is finished.

Does anyone know why?

thanks

Also, is session[:var] the keyword that will store the hash mapping of
var as a session variable?

thanks
Random wrote:

Hi,

I forked off a thread using Thread.new. That thread is supposed to
change a session variable. When I check the session variable, it had
changed inside the thread. However, this change does not persist after
the thread is finished.

Does anyone know why?

thanks

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs