mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
clarify that you can also set it to nil
This commit is contained in:
parent
10c39fd262
commit
ca878fd2de
1 changed files with 1 additions and 1 deletions
|
@ -585,7 +585,7 @@ class CommentsController < ApplicationController
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that while for session values you set the key to `nil`, to delete a cookie value you should use `cookies.delete(:key)`.
|
Note that while for session values you can set the key to `nil`, to delete a cookie value you should use `cookies.delete(:key)`.
|
||||||
|
|
||||||
Rails also provides a signed cookie jar and an encrypted cookie jar for storing
|
Rails also provides a signed cookie jar and an encrypted cookie jar for storing
|
||||||
sensitive data. The signed cookie jar appends a cryptographic signature on the
|
sensitive data. The signed cookie jar appends a cryptographic signature on the
|
||||||
|
|
Loading…
Reference in a new issue