Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi Umbraco people,
I have just upgraded to windows 8.1 and got the new IE browser.And for some wired reson this has stoped working:
FormsAuthentication.SetAuthCookie(m.LoginName, true);
I have also tryed
Member.AddMemberToCache(m, true, new TimeSpan(10, 0, 0, 0));
With no result
Best regards Kimtho
Hi Kimtho,
If you are using Window Server 2008 or later, need to install .NET Framework 4.5 to work.
If you are using older version - go to this site http://stackoverflow.com/a/19855256/1297563
Source from this site - http://www.hanselman.com/blog/IE10AndIE11AndWindows81AndDoPostBack.aspx
Hi all,
I got this problem also,Can't login membership.
About Chrome & FireFox can login but IE can't login always null.
I have tested using two following method but both not work.
Test 1# use UmbracoForm
enter code here
@using (Html.BeginUmbracoForm
@Html.TextBoxFor(m => loginModel.Username, new { @id = "Name", @class = "form-control", @name = "username" }) @Html.PasswordFor(m => loginModel.Password, new { @id = "password", @class = "form-control", @name = "password", @type = "password", required = true }) <input type="submit" value="Enter" class="btn btn-primary" />
}
loginStatusModel.IsLoggedIn =true
Chrome and firefox is true but IE11 is false.
IE11# @loginStatusModel.Username is null
Test 2# use Normal Form,Create new controller for post membership
{ @Html.TextBox("username"); @Html.Password("Password"); <input type="submit" /> }
Controller:
[HttpPost] [ActionName("MemberUmbLogin")]
public ActionResult MemberUmbLoginPost(MemberUmbLoginModel model)
{ string returnUrl = GetValidReturnUrl(Request.UrlReferrer); if (Membership.ValidateUser(model.Username, model.Password)) { FormsAuthentication.SetAuthCookie(model.Username, model.RememberMe); Response.Cookies.Add(new HttpCookie("Username", model.Username)); Response.Cookies["UserName"].Expires = DateTime.Now.AddYears(30); return Redirect("/login3"); } return Redirect("/login3"); }
Same result in Test 1#
IE11# @loginStatusModel.Username is null.
I don't know how to fix this.
Thanks for helps.
Naphong saebae.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
IE 11 login problems
Hi Umbraco people,
I have just upgraded to windows 8.1 and got the new IE browser.
And for some wired reson this has stoped working:
I have also tryed
With no result
Best regards Kimtho
Hi Kimtho,
If you are using Window Server 2008 or later, need to install .NET Framework 4.5 to work.
If you are using older version - go to this site http://stackoverflow.com/a/19855256/1297563
Source from this site - http://www.hanselman.com/blog/IE10AndIE11AndWindows81AndDoPostBack.aspx
Hi all,
I got this problem also,Can't login membership.
About Chrome & FireFox can login but IE can't login always null.
I have tested using two following method but both not work.
Test 1# use UmbracoForm
enter code here
@using (Html.BeginUmbracoForm
}
loginStatusModel.IsLoggedIn =true
Chrome and firefox is true but IE11 is false.
IE11# @loginStatusModel.Username is null
Test 2# use Normal Form,Create new controller for post membership
@using (Html.BeginUmbracoForm
Controller:
[HttpPost] [ActionName("MemberUmbLogin")]
public ActionResult MemberUmbLoginPost(MemberUmbLoginModel model)
Same result in Test 1#
loginStatusModel.IsLoggedIn =true
Chrome and firefox is true but IE11 is false.
IE11# @loginStatusModel.Username is null.
I don't know how to fix this.
Thanks for helps.
Naphong saebae.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.