mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a509e67c5a
commit
6fc752bf7d
11 changed files with 111 additions and 78 deletions
|
@ -51,7 +51,14 @@ class CGI
|
|||
@dbman = dbman::new(self, option)
|
||||
request.instance_eval do
|
||||
@output_hidden = {session_key => id}
|
||||
@output_cookies = [Cookie::new(session_key,id)]
|
||||
@output_cookies = [
|
||||
Cookie::new(session_key => id,
|
||||
"path" => if ENV["SCRIPT_NAME"] then
|
||||
File::dirname(ENV["SCRIPT_NAME"])
|
||||
else
|
||||
""
|
||||
end)
|
||||
]
|
||||
end
|
||||
ObjectSpace::define_finalizer(self, Session::callback(@dbman))
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue