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.

auto_login / exp_expiration cookie problem

February 13, 2014 3:33pm

Subscribe [2]
  • #1 / Feb 13, 2014 3:33pm

    moki

    26 posts

    I have an EE 2.7.2 site that uses Profile:Edit for custom login forms.  The problem I’m having is that users constantly have to log back into the site.

    I do have auto_login set on the login form:

      {if auto_login}<br />   <input class=“clp” type=“checkbox” name=“auto_login” value=“1” checked=“checked”>Remember Me?<br />   {/if}<br />

    ...any my understanding from this page is that it should keep them logged in for a year:

    https://gist.github.com/linssen/2767673

    However when I look at the cookie, it’s set to expire just two hours after login (I logged in at 3:21 EST):

    exp_expiration 1392330062 .crushlivepoker.com / February 13, 2014 at 5:21:02 PM EST 24 B

    This is not a MSM site.  Any ideas on what I can do to ensure that people stay logged in?  The users are complaining that they continually have to log back into the site…

    In the AdminCP->Security and Session Preferences, User Session Type is set to Cookies Only

    Also in /system/expressionengine/conf/remember.php it has the default value of 2 weeks:

    $config[‘remember_me_ttl’] = 60*60*24*14;

    ...so clearly somewhere it’s explicitly setting it to two hours, which is undesirable in this case, where I’d ideally like to keep users logged in for a year.

    What am I missing?

  • #2 / Feb 16, 2014 10:01pm

    moki

    26 posts

    :: crickets :: ?

  • #3 / Aug 06, 2014 12:09pm

    biblio

    9 posts

    I too would like to know about this.  My understanding is that the auto_login should trigger a 1 year cookie:

    exp_expiration

    Determines the length of the session for a logged in user. There are two options for this cookie: if the user has selected remember me then it is set to 1 year, and if not then it’s set to the datetime that the user logged in. Used only for logged in members.

    Currently I am set to “Cookies Only” so that is not the problem.

    Ideas?

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

ExpressionEngine News!

#eecms, #events, #releases