instance method http_only=

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

http_only=(val)

Sets whether the Cookie is an HTTP only cookie or not.

Parameters

val req
Source
# File actionpack/lib/action_controller/cgi_ext/cookie.rb, line 66
    def http_only=(val)
      @http_only = val == true
    end

Defined in actionpack/lib/action_controller/cgi_ext/cookie.rb line 66 · View on GitHub · Improve this page · Find usages on GitHub

Defined in CGI::Cookie

Type at least 2 characters to search.

↑↓ navigate · open · esc close