Skip to content

Commit

Permalink
Fix session lost with signed: true
Browse files Browse the repository at this point in the history
  • Loading branch information
kazk committed Oct 19, 2020
1 parent c9ad62a commit a2b6f6e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/action_dispatch/middleware/session/redis_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ def generate_sid
Rack::Session::SessionId.new(super)
end

def extract_session_id(request)
public_id = get_cookie(request)
public_id ||= request.params[key] unless @cookie_only
public_id && Rack::Session::SessionId.new(public_id)
end

private

def set_cookie(env, _session_id, cookie)
Expand Down

0 comments on commit a2b6f6e

Please sign in to comment.