[This is preliminary documentation and is subject to change.]

Gets or sets a value indicating whether the cookie is HTTP only, that is, cannot be read by client-side script.

Namespace: Simple.Web.BehaviorsSimple.Web.BehaviorsSimple::Web::Behaviors
Assembly: Simple.Web (in Simple.Web.dll)

Syntax

C#

public bool HttpOnly { getset; }

VB

Public Property HttpOnly As Boolean

Get

Set

C++

public:

property bool HttpOnly {

bool get();

void set(bool value);

}

Property Value

Type: System.BooleanSystem.BooleanSystem::Boolean
true if HTTP only, false if not. Default is false.

See Also

CookieAttributeCookieAttributeCookieAttribute Class
Simple.Web.BehaviorsSimple.Web.BehaviorsSimple::Web::Behaviors Namespace