Skip to content

Instantly share code, notes, and snippets.

@nahi
Created Mar 24, 2009
Embed
What would you like to do?
--- 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