method

parse

rails latest stable - Class: CGI::Cookie

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

parse(raw_cookie)
public

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, ... }