Created
March 24, 2009 14:22
-
-
Save nahi/84114 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- lib/jpmobile/trans_sid.rb.org 2009-03-24 23:16:07.000000000 +0900 | |
+++ lib/jpmobile/trans_sid.rb 2009-03-24 23:16:14.000000000 +0900 | |
@@ -26,5 +26,5 @@ module Jpmobile::TransSid #:nodoc: | |
return unless request # for test process | |
return unless apply_trans_sid? | |
- { session_key => session.id } | |
+ { session_key => request.session_options[:id] } | |
end | |
@@ -37,5 +37,5 @@ module Jpmobile::TransSid #:nodoc: | |
# session_idを埋め込むためのhidden fieldを出力する。 | |
def sid_hidden_field_tag | |
- "<input type=\"hidden\" name=\"#{CGI::escapeHTML session_key}\" value=\"#{CGI::escapeHTML session.id}\" />" | |
+ "<input type=\"hidden\" name=\"#{CGI::escapeHTML session_key}\" value=\"#{CGI::escapeHTML request.session_options[:id]}\" />" | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment