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.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 8.2.23
Syntax 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:
StringSee Also