Bug #605

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:18974]
Status:Closed Start date:09/17/2008
Priority:Normal Due date:
Assignee:xibbar (Takeyuki Fujioka) % Done:

100%

Category:-
Target version:-
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-trunk - Bug #572: CGI::Session : ignore session_key and session_id options Closed 09/17/2008

Associated revisions

Revision 20884
Added by xibbar over 3 years ago

* lib/cgi/session.rb: ignore session_id options fixed.[Bug #605]

History

Updated by xibbar (Takeyuki Fujioka) over 3 years ago

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

Also available in: Atom PDF