Sharepoint Forms Auth Remember Me Checkbox

Last post 11-14-2008 9:26 AM by abhitrig. 2 replies.

Sort Posts:

  • Sharepoint Forms Auth Remember Me Checkbox

    07-16-2008, 5:20 PM
    • Member
      6 point Member
    • rideon88
    • Member since 06-25-2008, 5:46 PM
    • Posts 4

    I have a site successfully setup and running forms authentication. I noticed though, that there is a Remember Me check box, and unless this is checked the site does not create a cookie and thus cannot properly check out or check in a document, which kills our functionality completely.

     

    I have tried editing this login.aspx file, but I have been unsuccessful. I've tried adding "checked" "checked='true'" and more... but it just isn't happening. Can anyone shed any light on this problem?

     

    Ideally, I want to  have this check box hidden and checked by default, so there is no way for a user to uncheck it.

     

     

  • Re: Sharepoint Forms Auth Remember Me Checkbox

    08-05-2008, 2:25 PM
    • Member
      2 point Member
    • kstay
    • Member since 08-05-2008, 6:24 PM
    • Posts 1

    I have the same exact problem.  Haven't found a solution yet.  If you made any headway please share.

    Regards,

    Keith

  • Re: Sharepoint Forms Auth Remember Me Checkbox

    11-14-2008, 9:26 AM
    • Member
      2 point Member
    • abhitrig
    • Member since 11-14-2008, 9:19 AM
    • Posts 1

    Hi!

    I know, this thread is old, but just in case someone else lands up here.....

    We had the similar problem and we worked around by adding the following script to our custom login page....

    <script>
    try
    {
        var e = document.getElementById("ctl00_PlaceHolderMain_login_RememberMe");
        e.checked = true;
     
        var e1 = document.getElementById("tdRememberme");
        e1.style.display="none";
       
    }
    catch(e)
    {
     alert(e);
    }
    </script>

    Ofcourse you would need to add id="tdRememberme" to the cell containing the checkbox.

    Hope it helps!

     

    Cheers,

    --Abhi

Page 1 of 1 (3 items)