Lucky::CookieJar
Inherits Habitat::SettingsHelpers < Habitat::TempConfig < Reference < Object
Constants
Class methods
Instance methods
Delete cookies with a block to add specific options.
jar.clear do |cookie| cookie.path("/") .http_only(true) .secure(true) end
https://tools.ietf.org/search/rfc6265#page-8 to remove a cookie, the server returns a Set-Cookie header with an expiration date in the past. The server will be successful in removing the cookie only if the Path and the Domain attribute in the Set-Cookie header match the values used when the cookie was created.
Delete a specific cookie by name key. Yield that cookie
to the block so you can add additional options like domain, path, etc...
Returns true if the cookie has been expired, and has no value.
Will return false if the cookie does not exist, or is valid.