diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-07-07 23:25:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-07 23:25:15 +0200 |
commit | 00df69bc89f1b5ffdf290bde8359b3854e2b1395 (patch) | |
tree | 3d5fff003bc5fb0c6e8922451532eb158d262f05 /app/controllers | |
parent | 7a549f830e0d77af3020243617c5ab8bd811fd8d (diff) |
Fix #4058 - Use a long-lived cookie to keep track of user-level sessions (#4091)
* Fix #4058 - Use a long-lived cookie to keep track of user-level sessions * Fix tests, smooth migrate from previous session-based identifier
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 865fcd125..b3c2db02b 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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) |