Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void RedirectToProperPage(Guid virtualUserId)
- {
- string myImmoboxHomeUrl = System.Configuration.ConfigurationManager.AppSettings["FrontendWeb"];
- if (!string.IsNullOrEmpty(myImmoboxHomeUrl))
- {
- myImmoboxHomeUrl = Calcul.AddTickTimeToUrl(myImmoboxHomeUrl);
- myImmoboxHomeUrl = Calcul.AddKeyValueToUrl(myImmoboxHomeUrl, UrlRewriteModule.VirtualUserKey, virtualUserId.ToString());
- Response.Redirect(myImmoboxHomeUrl, true);
- }
- }
- protected void impersonation_Click(object sender, EventArgs e)
- {
- //UserContext context = new UserContext();
- //context.AddProperty(CookieUserKey.UID, m_Order.EndUserId.ToString());
- //context.AddProperty(CookieUserKey.Type, AuthenticationType.FullAuthenticated.ToString());
- //context.AddProperty(CookieUserKey.Mode, Calcul.GetCookieValueForRememberMe(false));
- //context.AddProperty(CookieUserKey.LLD, ParseManager.Instance.DateAndTimeToString(DateTime.Now));
- //context.AddProperty(CookieUserKey.Version, System.Configuration.ConfigurationManager.AppSettings["CookieVersion"]);
- //context.AddProperty(CookieUserKey.IsImpersonator, bool.TrueString);
- //FillEndUserProfileInfoIntoUserContext(context);
- //string domain = System.Configuration.ConfigurationManager.AppSettings["FrontendWebDomain"];
- //SessionManager.Instance.SaveSession(context, "235D90D9-3DAB-4638-994B-62DE21B4A673", domain);
- //RedirectToProperPage();
- Guid virtualUser = ServiceChannelManager<IUserService>.GetChannel("basicHttp_UserService").VirtualUserInsert(m_Order.EndUserId);
- RedirectToProperPage(virtualUser);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement