hello Martin, Please forgive my terrible english.
I tried your mokye patch,
but it didn't work well.
I tried like next,
------
class Mobile::BaseController < ApplicationController
before_filter :cookie_only_off
protected
def cookie_only_off
RAILS_DEFAULT_LOGGER.info "call set optiion" # LOGGING
request.session_options[:cookie_only] = false
end
end
module ActionController
module Session
class AbstractStore
private
def load_session(env)
RAILS_DEFAULT_LOGGER.info "call load_session" # LOGGING
request = Rack::Request.new(env)
key = request.session_options[:key]
cookie_only = request.session_options[:cookie_only]
sid = request.cookies[key]
unless cookie_only
sid ||= request.params[key]
end
sid, session = get_session(env, sid)
[sid, session]
end
end
end
end
------
I watched my log,
Logger said "call load_session", "call set optiion".
I think the load_session method called first,
so I cannot set "cookie_only option".
Can I get another way of setting "cookie_only option" ?
Thank you for reading my terrible english.
--
densya
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---