Class FTW::Cookies::Cookie
In: lib/ftw/cookies.rb
lib/ftw/cookies.rb
Parent: Object

This is a Cookie. It expires, has a value, a name, etc. I could have used stdlib CGI::Cookie, but it actually parses cookie strings incorrectly and also lacks the ‘httponly’ attribute.

Methods

new   new   parse   parse  

Constants

STANDARD_ATTRIBUTES = [:domain, :path, :comment, :expires, :secure, :httponly]   List of standard cookie attributes
STANDARD_ATTRIBUTES = [:domain, :path, :comment, :expires, :secure, :httponly]   List of standard cookie attributes

Attributes

comment  [RW] 
comment  [RW] 
domain  [RW] 
domain  [RW] 
expires  [RW] 
expires  [RW] 
httponly  [RW] 
httponly  [RW] 
name  [RW] 
name  [RW] 
path  [RW] 
path  [RW] 
secure  [RW] 
secure  [RW] 
value  [RW] 
value  [RW] 

Public Class methods

A new cookie. Value and attributes are optional.

A new cookie. Value and attributes are optional.

See RFC6265 section 4.1.1

See RFC6265 section 4.1.1

[Validate]