Lost session/cookie when login as another user
问题 I am building dnn module which allow logged in user to log in as another user. But I have some wired issue here. This is how I log out current user and login as another user: UserInfo userInfo = UserController.GetUserById(portalId, userId); if (userInfo != null) { DataCache.ClearUserCache(this.PortalSettings.PortalId, Context.User.Identity.Name); if (Session["super_userId"] == null) { Session["super_userId"] = this.UserId; Session["super_username"] = this.UserInfo.Username; } HttpCookie