mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Update action_controller_overview.md [ci skip]
Code style adherence
This commit is contained in:
parent
deeeaef6d2
commit
4a98938ff4
1 changed files with 1 additions and 1 deletions
|
@ -350,7 +350,7 @@ For most stores, this ID is used to look up the session data on the server, e.g.
|
|||
|
||||
The CookieStore can store around 4kB of data - much less than the others - but this is usually enough. Storing large amounts of data in the session is discouraged no matter which session store your application uses. You should especially avoid storing complex objects (anything other than basic Ruby objects, the most common example being model instances) in the session, as the server might not be able to reassemble them between requests, which will result in an error.
|
||||
|
||||
If your user sessions don't store critical data or don't need to be around for long periods (for instance if you just use the flash for messaging), you can consider using ActionDispatch::Session::CacheStore. This will store sessions using the cache implementation you have configured for your application. The advantage of this is that you can use your existing cache infrastructure for storing sessions without requiring any additional setup or administration. The downside, of course, is that the sessions will be ephemeral and could disappear at any time.
|
||||
If your user sessions don't store critical data or don't need to be around for long periods (for instance if you just use the flash for messaging), you can consider using `ActionDispatch::Session::CacheStore`. This will store sessions using the cache implementation you have configured for your application. The advantage of this is that you can use your existing cache infrastructure for storing sessions without requiring any additional setup or administration. The downside, of course, is that the sessions will be ephemeral and could disappear at any time.
|
||||
|
||||
Read more about session storage in the [Security Guide](security.html).
|
||||
|
||||
|
|
Loading…
Reference in a new issue