diff options
author | Joe Marty <josephmarty@gmail.com> | 2017-11-21 12:27:25 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-21 12:27:25 -0600 |
commit | 516c63a71e632c862841cbcb3f9b7ecfc05d9675 (patch) | |
tree | 8db860d6c9f52dc2aa2902e06e9ccfa4a1f6803e /actionpack/lib | |
parent | 3e304e8177bc1fd81d9d8db15eaf252cf386e22f (diff) | |
download | rails-516c63a71e632c862841cbcb3f9b7ecfc05d9675.tar.gz rails-516c63a71e632c862841cbcb3f9b7ecfc05d9675.tar.bz2 rails-516c63a71e632c862841cbcb3f9b7ecfc05d9675.zip |
Fix tld_length documentation
Change recommendation for tld_length (for sharing cookies across subdomains of a 2-token TLD), to 2 instead of 1.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/cookies.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/cookies.rb b/actionpack/lib/action_dispatch/middleware/cookies.rb index 86a070c6ad..ea4156c972 100644 --- a/actionpack/lib/action_dispatch/middleware/cookies.rb +++ b/actionpack/lib/action_dispatch/middleware/cookies.rb @@ -161,7 +161,7 @@ module ActionDispatch # # * <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. + # For example, to share cookies between user1.lvh.me and user2.lvh.me, set <tt>:tld_length</tt> to 2. # * <tt>:expires</tt> - The time at which this cookie expires, as a \Time or ActiveSupport::Duration object. # * <tt>:secure</tt> - Whether this cookie is only transmitted to HTTPS servers. # Default is +false+. |