ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Issue with auto_login

December 14, 2011 1:21pm

Subscribe [2]
  • #1 / Dec 14, 2011 1:21pm

    LucasHibbard

    61 posts

    Hi All,

    I’m have a bit of trouble trying to get the auto_login for members to function.  Here is the code that I’m using for the login form:

    {exp:member:login_form id="login_form" return="site"}
             <ul class="cf-elements">
              <li>
                                    <label for="username">Username</label>
               <input type="text" class="txt" name="username" value="" />
              </li>
              <li>
                                    <label for="password">Password</label>
               <input type="password" class="txt" name="password" value="" />
              </li>
              <li>
                                    {if auto_login}
                                    <input class="checkbox" type="checkbox" name="auto_login" value="1" checked="checked"> Auto-login on future visits
                                    {/if}
              </li>
              <li>
                                    <a href="#password-form" class="addl-func">Forgot Password?</a>
               <input type="submit" value="Sign In" class="button" />
              </li>
             </ul>
            {/exp:member:login_form}

    I also have made sure that the “User Session Type” setting under the “Security and Session” is set to “Cookie Only”.  What I am seeing is that no matter what the state is of the checkbox for the auto_login, the cookie will expire in 30 minutes.  As far as I can tell, I am doing everything correctly.  Is there something that I am missing?

    Thank you all for you assistance,
    Lucas

  • #2 / Dec 15, 2011 3:58pm

    Dan Decker

    7338 posts

    Hi Lucas,

    You are doing everything correctly. There is a bug in ExpressionEngine related to cookies for login. I have heard that it has been fixed in the next release, but at this time there is no real way around it. I know that’s not a great answer, but you aren’t alone, our very own sites are affected by it too.

  • #3 / Feb 07, 2012 1:43pm

    cozmir

    30 posts

    Has this issue been fixed in version 2.4?

  • #4 / Feb 10, 2012 6:07pm

    Dan Decker

    7338 posts

    Hi cozmir,

    According to the change log for ExpressionEngine 2.4, the “remember me” bug was fixed.

    What version of ExpressionEngine are you currently using?

    Cheers!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases