protected override void AttachChildControls() { if (HttpContext.Current.Request.Cookies.Get("Vshop-Member") != null) { HiAffiliation.ClearUserCookie("", false); } if (HttpContext.Current.Request.Cookies.Get("Vshop-ReferralId") != null) { HiAffiliation.ClearReferralIdCookie(); } if (HttpContext.Current.Request.Cookies.Get("Vshop-Wid") != null) { HiAffiliation.ClearWidCookie("", false); } this.Page.Response.Redirect(Globals.ApplicationPath + "/Default.aspx"); }
protected void lbtnExit_Click(object sender, EventArgs e) { if (HttpContext.Current.Request.Cookies.Get("Vshop-Member") != null) { HiAffiliation.ClearUserCookie("", false); } if (HttpContext.Current.Request.Cookies.Get("Vshop-ReferralId") != null) { HiAffiliation.ClearReferralIdCookie(); } if (HttpContext.Current.Request.Cookies.Get("Vshop-Wid") != null) { HiAffiliation.ClearWidCookie("", false); } Response.Redirect("/admin/login.aspx"); Session[DTKeys.SESSION_WEB_ID] = null; Session[DTKeys.SESSION_ADMIN_INFO] = null; //SFUtils.WriteCookie("BusnieseName", "Busniese", -14400); //Utils.WriteCookie("BusniesePwd", "Busniese", -14400); }