1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #39860 from hahmed/docs/actiondispatch-cookies-improvements

Update wording for cookies [ci-skip]
This commit is contained in:
Vipul A M 2020-07-31 08:49:25 +05:30 committed by GitHub
commit 7246136234
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View file

@ -88,11 +88,10 @@ module ActionDispatch
# :startdoc:
end
# \Cookies are read and written through ActionController#cookies.
# Read and write data to cookies through ActionController#cookies.
#
# The cookies being read are the ones received along with the request, the cookies
# being written will be sent out with the response. Reading a cookie does not get
# the cookie object itself back, just the value it holds.
# When reading cookie data, the data is read from the HTTP request header, Cookie.
# When writing cookie data, the data is sent out in the HTTP response header, Set-Cookie.
#
# Examples of writing:
#

View file

@ -10,8 +10,8 @@ module ActionDispatch
# dramatically faster than the alternatives.
#
# Sessions typically contain at most a user_id and flash message; both fit
# within the 4K cookie size limit. A CookieOverflow exception is raised if
# you attempt to store more than 4K of data.
# within the 4096 bytes cookie size limit. A CookieOverflow exception is raised if
# you attempt to store more than 4096 bytes of data.
#
# The cookie jar used for storage is automatically configured to be the
# best possible option given your application's configuration.