instance method
http_only=
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
http_only=(val)
Sets whether the Cookie is an HTTP only cookie or not.
Parameters
-
valreq
Source
# File actionpack/lib/action_controller/cgi_ext/cookie.rb, line 64
def http_only=(val)
@http_only = val == true
end
Defined in actionpack/lib/action_controller/cgi_ext/cookie.rb line 64
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in CGI::Cookie