AuthenticationHelperImpersonateUser Method |
Impersonates current user.
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 12.0.0
Syntax 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