Skip to content

Commit

Permalink
Added a small comment about deleting cookies set with a :domain key (…
Browse files Browse the repository at this point in the history
…in order to delete you must specify the domain again).
  • Loading branch information
agibralter committed Jul 8, 2008
1 parent cb5ff15 commit 115652c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions actionpack/lib/action_controller/cookies.rb
Expand Up @@ -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).
Expand Down

0 comments on commit 115652c

Please sign in to comment.