method
session_store
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: Rails::Application::Configuration
- 1.0.0
- 1.1.6
- 1.2.6
- 2.0.3
- 2.1.0
- 2.2.1
- 2.3.8
- 3.0.0 (0)
- 3.0.9 (0)
- 3.1.0 (0)
- 3.2.1 (0)
- 3.2.8 (0)
- 3.2.13 (0)
- 4.0.2 (0)
- 4.1.8 (0)
- 4.2.1 (0)
- 4.2.7 (0)
- 4.2.9 (0)
- 5.0.0.1 (0)
- 5.1.7 (0)
- 5.2.3 (0)
- 6.0.0 (0)
- 6.1.3.1 (0)
- 6.1.7.7 (0)
- 7.0.0 (0)
- 7.1.3.2 (38)
- 7.1.3.4 (0)
- What's this?
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