Click or drag to resize
AuthenticationHelperImpersonateUser Method
Impersonates current user.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 11.0.0
Syntax
C#
public static void ImpersonateUser(
	UserInfo impersonatedUser,
	string redirectionUrl = null,
	bool forceRedirect = true
)

Parameters

impersonatedUser
Type: CMS.MembershipUserInfo
User to which impersonate the current user
redirectionUrl (Optional)
Type: SystemString
Custom redirection relative URL
forceRedirect (Optional)
Type: SystemBoolean
Indicates if redirect should be forced even if no redirect URL is specified
See Also