CookieHandler.HideFromClientScript Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that indicates whether the cookie should be hidden from client script.
public:
virtual property bool HideFromClientScript { bool get(); void set(bool value); };
public virtual bool HideFromClientScript { get; set; }
member this.HideFromClientScript : bool with get, set
Public Overridable Property HideFromClientScript As Boolean
Property Value
true
if the cookie should be hidden from client script; otherwise, false
. The default is true
.
Remarks
Controls whether the "HttpOnly" flag is emitted in the Set-Cookie header for cookies written by the handler. Some web browsers honor this flag by keeping client-side script from accessing the cookie value.
This property corresponds to the HttpCookie.HttpOnly property.
The property can be initialized by specifying the hideFromScript
attribute on the <cookieHandler> element in configuration.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για