diff options
author | Aaron Gibralter <aaron.gibralter@gmail.com> | 2008-07-08 09:56:14 -0400 |
---|---|---|
committer | Aaron Gibralter <aaron.gibralter@gmail.com> | 2008-07-08 09:56:14 -0400 |
commit | 115652cdcb3d11687b6fa303f6727dd2aad63287 (patch) | |
tree | 53c2ceb46d49424b05a88b8778c956a764c406fb /actionpack | |
parent | cb5ff1531d248790324afc72741980ba4af11cb1 (diff) | |
download | rails-115652cdcb3d11687b6fa303f6727dd2aad63287.tar.gz rails-115652cdcb3d11687b6fa303f6727dd2aad63287.tar.bz2 rails-115652cdcb3d11687b6fa303f6727dd2aad63287.zip |
Added a small comment about deleting cookies set with a :domain key (in order to delete you must specify the domain again).
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/cookies.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/cookies.rb b/actionpack/lib/action_controller/cookies.rb index a4cddbcea2..51bc4ad23d 100644 --- a/actionpack/lib/action_controller/cookies.rb +++ b/actionpack/lib/action_controller/cookies.rb @@ -22,6 +22,16 @@ module ActionController #:nodoc: # # cookies.delete :user_name # + # Please note that if you specify a :domain when setting a cookie, you must also specify the domain when deleting the cookie: + # + # cookies[:key] = { + # :value => 'a yummy cookie', + # :expires => 1.year.from_now, + # :domain => 'domain.com' + # } + # + # cookies.delete(:key, :domain => 'domain.com') + # # The option symbols for setting cookies are: # # * <tt>:value</tt> - The cookie's value or list of values (as an array). |