Bug #572

CGI::Session : ignore session_key and session_id options

Added by Takeyuki FUJIOKA almost 7 years ago. Updated over 4 years ago.

[ruby-core:18639]
Status:Closed
Priority:Normal
Assignee:Takeyuki FUJIOKA
ruby -v: Backport:

Description

=begin
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
=end

Associated revisions

Revision 20861
Added by Takeyuki FUJIOKA over 6 years ago

  • lib/cgi/session.rb: fix bug for ignore session_id option.
    report from , [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 Takeyuki FUJIOKA over 6 years ago

  • lib/cgi/session.rb: fix bug for ignore session_id option.
    report from , [Bug #572]

  • lib/cgi/core.rb: use Encoding#find when encoding set.

  • test/cgi/test_cgi_session.rb: test for session_id specified.

History

#1 Updated by Takeyuki FUJIOKA almost 7 years ago

  • Assignee set to Takeyuki FUJIOKA

=begin

=end

#2 Updated by Yuki Sonoda almost 7 years ago

  • Target version set to 1.9.1 Release Candidate

=begin

=end

#3 Updated by Yuki Sonoda over 6 years ago

=begin
TODO: 藤岡さんに確認する
=end

#4 Updated by Takeyuki FUJIOKA over 6 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r20861.
=end

Also available in: Atom PDF