protected void lbLoginAsAdmin_Click(object sender, EventArgs e) { if (Demo.IsDemoEnabled || Trial.IsTrialEnabled) { CustomerSession.CreateAnonymousCustomerGuid(); AuthorizeService.DeleteCookie(); var customer = CustomerService.GetCustomerByEmail("admin"); if (customer != null) { AuthorizeService.AuthorizeTheUser(customer.EMail, customer.Password, true); Response.Redirect("~/Admin/default.aspx"); } } }
public void Logout() { AuthorizeService.DeleteCookie(); }
public void btnLogout_Click(object sender, EventArgs e) { CustomerSession.CreateAnonymousCustomerGuid(); AuthorizeService.DeleteCookie(); Response.Redirect("~/"); }