| Class | CGI::Cookie |
| In: |
lib/action_controller/cgi_ext/cookie.rb
|
| Parent: | DelegateClass(Array) |
| domain | [RW] | |
| expires | [RW] | |
| http_only | [R] | |
| name | [RW] | |
| path | [RW] | |
| secure | [R] | |
| value | [RW] |
Creates a new CGI::Cookie object.
The contents of the cookie can be specified as a name and one or more value arguments. Alternatively, the contents can be specified as a single hash argument. The possible keywords of this hash are as follows:
These keywords correspond to attributes of the cookie object.
Parses a raw cookie string into a hash of cookie-name => cookie-object pairs.
cookies = CGI::Cookie::parse("raw_cookie_string")
# => { "name1" => cookie1, "name2" => cookie2, ... }