Once I try to login again my web application certification is the time of cookies I'm a Nokia browser And I am trying to use the application through Internet Explorer and both have the same behavior.
This is my logon process:
[http post] [SuppressMessage] public ActionResult taglock on tab (LogOnModel model, string returnUrl) {if (MembershipService.ValidateUser (model: "Microsoft.Design", "CA1054 UriParametersShouldNotBeStrings", justification = "() needs to take the same parameter type in Controller.Redirect form.") .Username, Model. Password)) {//FormsService.SignIn (model .UserName, model.RememberMe); FormsAuthenticationTicket Authticket = New FormsAuthenticationTicket (1, model.UserName, DateTime.Now, DateTime.Now.AddYears (1), Correct ",", FormsAuthentication.FormsCookiePath); String hash = form attestation. Encrypt; HTTPQQAHKKUKI = new HTTP cookie (form authentication.farmcookie, hash); If (Authticket.IsPersistent) Authcookie.Expires = Authticket.Expiration; Response.Cookies.Add (Authcookie); If (! String.IsNullOrEmpty (returnUrl)) {Redirect Return (returnUrl); } Return Redirect Action ("Index", "Home"); } ModelState.AddModelError ("", "The username or password provided is incorrect."); // If we got this far away, then some failed, look at the form return format (model); } My web.config settings:
& lt; Forms loginUrl = "~ / consign / account / logon" timeout = "2880" security = "all" name = ". Consignmentauthadmin" /> I'm trying:
[HttpPost] [SuppressMessage ("Microsoft.Design", "CA1054: UriParametersShouldNotBeStrings", justification = "take Need the same parameter type as the controller. Redirect () ")] Public ActionResult Logon (Logon Modell Model, String Return URL) {If Subscription Service Validation (User Username, Modal Password)) {// FormsService. SignIn (model username, model. Remember me); FormsAuthenticationTicket Authticket = New FormsAuthenticationTicket (1, model.UserName, DateTime.Now, DateTime.Now.AddYears (1), Correct ",", FormsAuthentication.FormsCookiePath); String hash = form attestation. Encrypt; HTTPQQAHKKUKI = new HTTP cookie (form authentication.farmcookie, hash); If (Authticket.IsPersistent) Authcookie.Expires = Authticket.Expiration; Response.Cookies.Add (Authcookie); If (! String.IsNullOrEmpty (returnUrl)) {Redirect Return (returnUrl); } Return Redirect Action ("Index", "Home"); } ModelState.AddModelError ("", "The username or password provided is incorrect."); // If we got this far away, then some failed, look at the form return format (model); } I do not want to end authentication unless I log off from the application. I am trying to see my webserver IIS application pool, there is an "application refresh" in it. Turn off "which is the default setup ... to fix your problem.
Comments
Post a Comment