Class: ActionDispatch::Cookies::PermanentCookieJar
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
AbstractCookieJar
|
|
Instance Chain:
|
|
Inherits: |
ActionDispatch::Cookies::AbstractCookieJar
|
Defined in: | actionpack/lib/action_dispatch/middleware/cookies.rb |
Class Method Summary
AbstractCookieJar
- Inherited
Instance Attribute Summary
ChainedCookieJars
- Included
Instance Method Summary
- #commit(name, options) private
AbstractCookieJar
- Inherited
ChainedCookieJars
- Included
#encrypted | Returns a jar that’ll automatically encrypt cookie values before sending them to the client and will decrypt them for read. |
#permanent | Returns a jar that’ll automatically set the assigned cookies to have an expiration date 20 years from now. |
#signed | Returns a jar that’ll automatically generate a signed representation of cookie value and verify it when reading from the cookie again. |
#signed_or_encrypted | Returns the |
#encrypted_cookie_cipher, #signed_cookie_digest |
Constructor Details
This class inherits a constructor from ActionDispatch::Cookies::AbstractCookieJar
Instance Method Details
#commit(name, options) (private)
[ GitHub ]# File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 560
def commit(name, ) [:expires] = 20.years.from_now end