aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/action_controller_overview.md
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2016-07-17 19:38:54 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2016-07-17 19:45:51 +0530
commite5a6f7ee9e951dbe0e4e9ea2c0743b4dfb135c57 (patch)
treec453ef5911af803843705f7790c6ba05e70d5e24 /guides/source/action_controller_overview.md
parentfd8ab8781488923c034200b83278d10dd8c90ba6 (diff)
downloadrails-e5a6f7ee9e951dbe0e4e9ea2c0743b4dfb135c57.tar.gz
rails-e5a6f7ee9e951dbe0e4e9ea2c0743b4dfb135c57.tar.bz2
rails-e5a6f7ee9e951dbe0e4e9ea2c0743b4dfb135c57.zip
Setup default session store internally, no longer through an application initializer
- By default the session store will be set to cookie store with application name as session key. - Older apps are not affected as they will have the session store initializer generated by Rails in older versions, and Rails will not overwrite the session store if it is already set or disabled. - But new apps will not have the initializer, instead the session store will be set to cookie store by default. - Based on comment by DHH here - https://github.com/rails/rails/issues/25181#issuecomment-222312764.
Diffstat (limited to 'guides/source/action_controller_overview.md')
-rw-r--r--guides/source/action_controller_overview.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/action_controller_overview.md b/guides/source/action_controller_overview.md
index 58362fea58..7b1138c7d4 100644
--- a/guides/source/action_controller_overview.md
+++ b/guides/source/action_controller_overview.md
@@ -362,7 +362,7 @@ If your user sessions don't store critical data or don't need to be around for l
Read more about session storage in the [Security Guide](security.html).
-If you need a different session storage mechanism, you can change it in the `config/initializers/session_store.rb` file:
+If you need a different session storage mechanism, you can change it in an initializer:
```ruby
# Use the database for sessions instead of the cookie-based default,
@@ -371,7 +371,7 @@ If you need a different session storage mechanism, you can change it in the `con
# Rails.application.config.session_store :active_record_store
```
-Rails sets up a session key (the name of the cookie) when signing the session data. These can also be changed in `config/initializers/session_store.rb`:
+Rails sets up a session key (the name of the cookie) when signing the session data. These can also be changed in an initializer:
```ruby
# Be sure to restart your server when you modify this file.