Browse files

Added a small comment about deleting cookies set with a :domain key (…

…in order to delete you must specify the domain again).
  • Loading branch information...
1 parent cb5ff15 commit 115652cdcb3d11687b6fa303f6727dd2aad63287 @agibralter agibralter committed Jul 8, 2008
Showing with 10 additions and 0 deletions.
  1. +10 −0 actionpack/lib/action_controller/cookies.rb
View
10 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).

0 comments on commit 115652c

Please sign in to comment.