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