Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8901

Fire custom method when user impersonation begins in Kentico 9

$
0
0
We are on Kentico 9. When a user logs into our website, a cookie is set for the user. However, when I log in to the admin site, then impersonate a user, the cookie still holds information pertaining to my user (not the impersonated user). I'd like the cookie to be replaced with one that holds the information of the impersonated user. Therefore, I need a method to fire when impersonation begins. Does Kentico provide a way to hook into the impersonation process to fire a custom method?I've found that method AuthenticationHelper.ImpersonateUser is called when you impersonate a user, but I don't see a way to do what I want.The only places I see this method called are in ~\CMSAdminControls\UI\UserMenu.ascx.cs and ~\CMSModules\Membership\Pages\Users\User_Edit_General.aspx.cs, but I'm not sure I want to go modifying those code files.

Viewing all articles
Browse latest Browse all 8901

Trending Articles