Click or drag to resize
AuthenticationHelperGetFormsAuthenticationUserName Method
Checks whether the supplied forms authentication cookie is valid. If the cookie is valid, returns name of the authenticated user. Otherwise returns null. Contains check for BannedIPs Login level.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 8.2.23
Syntax
C#
public static string GetFormsAuthenticationUserName(
	string authCookie,
	string siteName
)

Parameters

authCookie
Type: SystemString
Forms authentication cookie
siteName
Type: SystemString
Name of the site for which the banned IP is checked

Return Value

Type: String
See Also