Esempio n. 1
0
 //Account/LogOff
 public ActionResult LogOff()
 {
     try
     {
         Parametro.CerrarSesionPagina();
         HttpCookie cookie = this.ControllerContext.HttpContext.Request.Cookies["SSLayerUser"];
         if (cookie != null)
         {
             cookie.Expires = DateTime.Now.AddDays(-1);
             this.ControllerContext.HttpContext.Response.Cookies.Add(cookie);
         }
     }
     catch (Exception)
     {
         throw;
     }
     return(RedirectToAction("Login", "Cuenta"));
 }
Esempio n. 2
0
 // GET: /Account/ResetPasswordConfirmation
 public ActionResult ResetPasswordConfirmation()
 {
     Parametro.CerrarSesionPagina();
     return(View());
 }