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