Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • kim Thomsen 59 posts 277 karma points
    Oct 25, 2013 @ 16:13
    kim Thomsen
    0

    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:

     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

  • Jamie 35 posts 87 karma points
    Nov 15, 2013 @ 03:36
    Jamie
    100

    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

  • naphong 1 post 71 karma points
    Jun 10, 2016 @ 05:56
    naphong
    0

    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

    @using (Html.BeginUmbracoForm

            {                         
            @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#

    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.

  • 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.

Please Sign in or register to post replies