Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a mechanism for storing a user id to a Rack session for active_record_store. #20463

Closed
jvlcek opened this issue Aug 19, 2020 · 1 comment
Assignees

Comments

@jvlcek
Copy link
Member

jvlcek commented Aug 19, 2020

This is a sub-issue of issue Ability to track and revoke sessions #20378

Brief:

The ultimate goal is to be able to look up all current sessions stored in active_record_store for a given user id. This will require finding a mechanism for storing the user id as part of the Rack session for indexed lookup.

Details:

The backing store for a session is based on the Settings.server.session_store value and is interpreted in the session_store initializer code.

There are three different types:

  • active_record_store ultimately ends up using the Session model
  • memory_store is in-memory
  • mem_cache_store ultimately uses Rack::Session::Dalli from the dalli gem.

In all cases, we use the underlying Rails session stores.

There will be a separate issue for each one of the three since each can be addressed separately, with separate PRs.

  • As the subject implies, this issue will be used to track the active_record_store case.
  • The memory_store work is tracked in Issue: #20464
  • The mem_cache_store work is tracked in Issue: #20462
@gtanzillo
Copy link
Member

Rolled into #20462

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants