method

set_cookie

set_cookie(options)
private

Builds a CGI::Cookie object and adds the cookie to the response headers.

The path of the cookie defaults to "/" if there’s none in options, and everything is passed to the CGI::Cookie constructor.