From: Lothar Scholz Date: 2003-07-20T05:10:34+09:00 Subject: BUG: CGI.Session on Windows If a newbie tries to get CGI Sessions working, he will run in the following bug. No code example that i have seen so far starts with supplying the temporary diectory as an option. s = CGI::Session.new(cgi,{"tmpdir" => "z:/temp/", "session_path" => "/"}) And if a user does not do this it will result in an error because the default in "session.rb:105" is "dir = option['tmpdir'] || ENV['TMP'] || '/tmp'" '/tmp' is not valid under windows and normally (standart configuration) CGI's don't get the environment variables from the system. So could we change this into "dir = option['tmpdir'] || ENV['TMP'] || Dir::temp_directory and add a "temp_directory" method to the Dir class that returns '/tmp' or on windows the value of the "GetTempPath" function. I would highly recommand this change. It makes the newbies life much easier. BTW is there any public bug tracking system where i can add such requests.