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?