Help > Forum > Users > The 'Log me in automatically each visit' feature

The 'Log me in automatically each visit' feature

The "Log me in automatically each visit" option on the forum log in page saves the member's username and encrypted password in their browser so that they don't have to manually log in each time they visit the forum. This feature may be a cause for concern with some forums that require high levels of security because there is always a chance of a user forgetting to log out on a public computer.

You can modify the automatic log in option by following the directions below:

  1. Log in to your Website Toolbox account.
  2. Click the Appearance link.
  3. In the Appearance menu, click the HTML link.
  4. Insert one of the following codes into the Footer textbox.

    The automatic log in option is turned off by default when a member visits the log in page of a forum. The code below can be used to turn it on by default.

    <script>
    <!--
    
    	window.addEventListener("load", function(){
    		var objCheckbox = document.getElementById('rem');
    
    		if (objCheckbox && objCheckbox.tagName == "INPUT") {
    		   objCheckbox.checked = true;
    		}
    	});
    
    -->
    </script>
    

    The code below can be used to hide the automatic log in option completely.

    <script>
    <!--
    
    	window.addEventListener("load", function(){
    		var objCheckbox = document.getElementById('rem');
    
    		if (objCheckbox && objCheckbox.tagName == "INPUT") {
    		   var checkboxParent = objCheckbox.parentNode.parentNode;
    		   if (checkboxParent && checkboxParent.tagName == "DIV") {
    			  checkboxParent.style.display = "none";
    		   }
    
    		   objCheckbox.style.display = "none";
    		}
    
    	});
    
    -->
    </script>
    
  5. Save the changes.


If you still need help, please contact us.