Created
January 10, 2013 20:38
-
-
Save slant/4505578 to your computer and use it in GitHub Desktop.
Add this in `/config/initializers/redis_store.rb` to get RedisStore's sessions working with `domain: :all`
This file contains hidden or 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
require 'action_dispatch/middleware/session/redis_store' | |
ActionDispatch::Session::RedisStore.class_eval do | |
def set_cookie(env, session_id, cookie) | |
request = ActionDispatch::Request.new(env) | |
request.cookie_jar[key] = cookie | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment