示例#1
0
 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");
         }
     }
 }
示例#2
0
 public void Logout()
 {
     AuthorizeService.DeleteCookie();
 }
示例#3
0
 public void btnLogout_Click(object sender, EventArgs e)
 {
     CustomerSession.CreateAnonymousCustomerGuid();
     AuthorizeService.DeleteCookie();
     Response.Redirect("~/");
 }