module Rack::Utils
def parse_cookies(env)
# => {'myname' => 'myvalue'}
parse_cookies({'HTTP_COOKIE' => 'myname=myvalue'})
parse_cookies_header. Returns a map of cookie +key+ to cookie +value+.
Parse cookies from the provided request environment using
parse_cookies(env) -> hash
:call-seq:
def parse_cookies(env) parse_cookies_header env[HTTP_COOKIE] end