FormsAuthenticationConfiguration.Domain Property
.NET Framework 3.0
Gets or sets the domain name to be sent with forms authentication cookies.
Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)
FormsAuthenticationConfiguration Members
System.Web.Configuration Namespace
credentials Element for forms for authentication (ASP.NET Settings Schema)
httpCookies Element (ASP.NET Settings Schema)
Assembly: System.Web (in system.web.dll)
/** @property */ public String get_Domain () /** @property */ public void set_Domain (String value)
public function get Domain () : String public function set Domain (value : String)
Not applicable.
Property Value
The name of the domain for the outgoing forms authentication cookies. Default is an empty string.The Domain is used for the authentication cookies.
This property corresponds to the value of HttpCookie.Domain.
This setting will take precedence over the domain attribute of the httpCookies section for forms authentication cookies.
The following code example shows how to access the Domain property. Refer to the code example in the FormsAuthenticationConfiguration class topic to learn how to get the section.
Reference
FormsAuthenticationConfiguration ClassFormsAuthenticationConfiguration Members
System.Web.Configuration Namespace
Other Resources
authentication Element (ASP.NET Settings Schema)credentials Element for forms for authentication (ASP.NET Settings Schema)
httpCookies Element (ASP.NET Settings Schema)