def set_cookie(name, value, expires)
      options = expires.is_a?(Hash) ? expires : {:expires => expires}
      cookies.set_cookie(name, value, options)
    end
def set_cookie(name, value, expires)
      options = expires.is_a?(Hash) ? expires : {:expires => expires}
      cookies.set_cookie(name, value, options)
    end
Sets a cookie to be included in the response.

 If you need to set a cookie, then use the +cookies+ hash.

 ==== Parameters
 name<~to_s>:: A name for the cookie.
 value<~to_s>:: A value for the cookie.
 expires<~gmtime:~strftime, Hash>:: An expiration time for the cookie, or a hash of cookie options.

 :api: public