News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Login Screen

Started by Zimbo, January 06, 2012, 06:42:47 AM

Previous topic - Next topic

Zimbo

How can I remove the question - "Always stay logged in"? on the Login Screen

In all cases I want members to have to re-enter their login details for every visit.

This is for a security issue with respect to using shared machines.

Thanks

Sir Osis of Liver

You can comment out these lines in Login.template.php -



<!--dt>', $txt['mins_logged_in'], ':</dt>
<dd><input type="text" name="cookielength" size="4" maxlength="4" value="', $modSettings['cookieTime'], '"', $context['never_expire'] ? ' disabled="disabled"' : '', ' class="input_text" /></dd>
<dt>', $txt['always_logged_in'], ':</dt>
<dd><input type="checkbox" name="cookieneverexp"', $context['never_expire'] ? ' checked="checked"' : '', ' class="input_check" onclick="this.form.cookielength.disabled = this.checked;" checked="yes" /></dd-->



That will remove "Minutes to stay logged in" and "Always stay logged in", then you can set a suitable default cookie length in Admin -> Server Settings -> Cookies and Sessions.

When in Emor, do as the Snamors.
                              - D. Lister

Zimbo


Advertisement: