method
session_store
v7.1.3.2 -
Show latest stable
- Class:
Rails::Application::Configuration
session_store(new_session_store = nil, **options)public
Specifies what class to use to store the session. Possible values are :cache_store, :cookie_store, :mem_cache_store, a custom store, or :disabled. :disabled tells Rails not to deal with sessions.
Additional options will be set as session_options:
config.session_store :cookie_store, key: "_your_app_session" config.session_options # => {key: "_your_app_session"}
If a custom store is specified as a symbol, it will be resolved to the +ActionDispatch::Session+ namespace:
# use ActionDispatch::Session::MyCustomStore as the session store config.session_store :my_custom_store