November Happy Hour will be moved to Thursday December 5th.

Class FormsSettings

Convenience class to access authentication mode settings from the configuration system.

Inheritance
System.Object
FormsSettings
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Security
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public class FormsSettings

Constructors

FormsSettings()

Declaration
public FormsSettings()

Properties

IsFormsAuthentication

Gets a value indicating this application si configured for forms authentication.

Declaration
public static bool IsFormsAuthentication { get; }
Property Value
Type Description
System.Boolean

true if this instance is forms authentication; otherwise, false.

IsWindowsAuthentication

Gets a value indicating this application si configured for Windows authentication.

Declaration
public static bool IsWindowsAuthentication { get; }
Property Value
Type Description
System.Boolean

true if this instance is forms authentication; otherwise, false.

LogOffTimeout

Gets the "logoff timeout" from the FomsAuthentication timeout attribute.

Declaration
public static TimeSpan LogOffTimeout { get; }
Property Value
Type Description
System.TimeSpan

Extension Methods