From: Patrick Li Date: 2008-08-16T07:09:31+09:00 Subject: CGI Session Synchronization I finally tracked down a bug that's been bothering me, and I'm at a complete loss for how to fix it. If you have wisdom, please share. =) I'm opening a CGI Session using Session.new and storing in $SESSION. Unfortunately, my webpage has multiple windows open at a time, each of which runs in it's own ruby VM, and accesses it's own $SESSION. Is there a way I can synchronize my $SESSION variable? eg. Wait for the current Session to be closed before opening it again? eg. In one window I'm running which does: $SESSION = CGI::Session.new #bla #bla #bla $SESSION.close and in another window I'm running which does : $SESSION = CGI::Session.new <--- I want this line to stall until Temp.rb is done #bla bla bla $SESSION.close Thank you very very much for your help. -Patrick -- Posted via http://www.ruby-forum.com/.