Bug #572

CGI::Session : ignore session_key and session_id options

Added by xibbar (Takeyuki Fujioka) over 3 years ago. Updated about 1 year ago.

[ruby-core:18639]
Status:Closed Start date:09/17/2008
Priority:Normal Due date:
Assignee:xibbar (Takeyuki Fujioka) % Done:

100%

Category:lib
Target version:1.9.1 Release Candidate
ruby -v:

Description

cgi = CGI.new("html4")
sess = CGI::Session.new(cgi,
  "new_session" => true,
  "session_key" => "foo",
  "session_id" => "bar")
will not create a session whre sess.session_id == "bar"

cgi = CGI.new("html3")
sess = CGI::Session.new( cgi, "session_key" => "rubyweb",
  "session_id"  => "9650",
  "new_session" => true,
  "prefix" => "web-session.")
sess["CustID"] = 123
sess["Part"] = "ABC"

This will send a cookie to the user named ``rubyweb'' with a
value of 9650. It will also create a disk file in
$TMP/web-session.9650 with the key, value pairs for CustID and Part.

reported from [ruby-core:18635]

Related issues

related to Ruby 1.8 - Bug #605: CGI::Session : ignore session_key and session_id options Closed 09/17/2008

Associated revisions

Revision 20861
Added by xibbar (Takeyuki Fujioka) over 3 years ago

* lib/cgi/session.rb: fix bug for ignore session_id option. report from [ruby-core:18635], [Bug #572] * lib/cgi/core.rb: use Encoding#find when encoding set. * test/cgi/test_cgi_session.rb: test for session_id specified.

Revision 20861
Added by xibbar (Takeyuki Fujioka) over 3 years ago

* lib/cgi/session.rb: fix bug for ignore session_id option. report from [ruby-core:18635], [Bug #572] * lib/cgi/core.rb: use Encoding#find when encoding set. * test/cgi/test_cgi_session.rb: test for session_id specified.

History

Updated by xibbar (Takeyuki Fujioka) over 3 years ago

  • Assignee set to xibbar (Takeyuki Fujioka)

Updated by yugui (Yuki Sonoda) over 3 years ago

  • Target version set to 1.9.1 Release Candidate

Updated by yugui (Yuki Sonoda) over 3 years ago

TODO: 藤岡さんに確認する

Updated by xibbar (Takeyuki Fujioka) over 3 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100
Applied in changeset r20861.

Also available in: Atom PDF