* Fix #4058 - Use a long-lived cookie to keep track of user-level sessions * Fix tests, smooth migrate from previous session-based identifier
This commit is contained in:
parent
7a549f830e
commit
00df69bc89
3 changed files with 25 additions and 8 deletions
|
@ -70,7 +70,7 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
def current_session
|
||||
@current_session ||= SessionActivation.find_by(session_id: session['auth_id'])
|
||||
@current_session ||= SessionActivation.find_by(session_id: cookies.signed['_session_id'])
|
||||
end
|
||||
|
||||
def cache_collection(raw, klass)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue