public ActionResult MemberLogout()
 {
     Session.Clear();
     FormsAuthentication.SignOut();
     LogfileHelper.MemberLog(GetCurrentMenber(), "Log out at");
     return(Redirect("/"));
 }
 public ActionResult MemberLogin(MemberLoginModel model)
 {
     if (Membership.ValidateUser(model.Username, model.Password))
     {
         FormsAuthentication.SetAuthCookie(model.Username, true);
         LogfileHelper.MemberLog(model.Username, "Log in at");
         return(RedirectToCurrentUmbracoPage());
     }
     else
     {
         LogfileHelper.MemberLog(model.Username, "Failed log in at");
         return(RedirectToCurrentUmbracoPage());
     }
 }