Hi,
I have implemented the impersonation functionality and it works as expected exept for one thing.
I have a priceprovider which gets live prices from EPR and in that provider I check if there is a SecondaryUser and if there is one I send that customer number to the webservice and get the correct price for the impersonated user:
Dynamicweb.Modules.UserManagement.User user = User.GetCurrentUser();
Dynamicweb.Modules.UserManagement.User secUser = user.CurrentSecondaryUser;
And all that works just fine. The problem occurs when the user stops the impersonation with the:
<input type="submit" name="DwExtranetRemoveSecondaryUser" id="DwExtranetRemoveSecondaryUser" value="Stoppa imitering">
It also works fine in the frontend but the "user.CurrentSecondaryUser" in the API still returns the secondary user. But in the frontend the "Global:Extranet.SecondaryUser.UserID" is not defined which is correct.
Is that a bug? The solutions is 8.4.0.8.
Regarsd / Aki