Compartir a través de


SessionOptions.CookieHttpOnly Propiedad

Definición

Precaución

This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.HttpOnly.

Esta propiedad está obsoleta y se quitará en una versión futura. La alternativa recomendada está en Cookie.

Determina si el explorador debe permitir que la cookie tenga acceso a código JavaScript del lado cliente. El valor predeterminado es true, lo que significa que la cookie solo se pasará a las solicitudes HTTP y no estará disponible para el script en la página.

public:
 property bool CookieHttpOnly { bool get(); void set(bool value); };
public bool CookieHttpOnly { get; set; }
[System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.HttpOnly.")]
public bool CookieHttpOnly { get; set; }
member this.CookieHttpOnly : bool with get, set
[<System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.HttpOnly.")>]
member this.CookieHttpOnly : bool with get, set
Public Property CookieHttpOnly As Boolean

Valor de propiedad

Atributos

Se aplica a