AuthenticationSection.Forms Property
.NET Framework (current version)
Gets the Forms element property.
Assembly: System.Web (in System.Web.dll)
<ConfigurationPropertyAttribute("forms")> Public ReadOnly Property Forms As FormsAuthenticationConfiguration
Property Value
Type: System.Web.Configuration.FormsAuthenticationConfigurationA Forms element property that contains information used during forms-based authentication.
The following code example shows how to use the Forms element property.
' Get the current Forms property. Dim currentForms _ As FormsAuthenticationConfiguration = _ authenticationSection.Forms ' Get the Forms attributes. Dim name As String = _ currentForms.Name Dim login As String = _ currentForms.LoginUrl Dim path As String = _ currentForms.Path Dim cookieLess As HttpCookieMode = _ currentForms.Cookieless Dim requireSSL As Boolean = _ currentForms.RequireSSL Dim slidingExpiration As Boolean = _ currentForms.SlidingExpiration Dim enableXappRedirect As Boolean = _ currentForms.EnableCrossAppRedirects Dim timeout As TimeSpan = _ currentForms.Timeout Dim protection As FormsProtectionEnum = _ currentForms.Protection Dim defaultUrl As String = _ currentForms.DefaultUrl Dim domain As String = _ currentForms.Domain
.NET Framework
Available since 2.0
Available since 2.0
Show: