mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Document :tld_length option for cookies.
This commit is contained in:
parent
8979a5a4bd
commit
d5a6297178
1 changed files with 3 additions and 0 deletions
|
@ -79,6 +79,9 @@ module ActionDispatch
|
|||
# domain: %w(.example.com .example.org) # Allow the cookie
|
||||
# # for concrete domain names.
|
||||
#
|
||||
# * <tt>:tld_length</tt> - When using <tt>:domain => :all</tt>, this option can be used to explicitly
|
||||
# set the TLD length when using a short (<= 3 character) domain that is being interpreted as part of a TLD.
|
||||
# For example, to share cookies between user1.lvh.me and user2.lvh.me, set <tt>:tld_length</tt> to 1.
|
||||
# * <tt>:expires</tt> - The time at which this cookie expires, as a \Time object.
|
||||
# * <tt>:secure</tt> - Whether this cookie is only transmitted to HTTPS servers.
|
||||
# Default is +false+.
|
||||
|
|
Loading…
Reference in a new issue