< Back to Individual Hacks

Adding a "remember me" checkbox

Suppose you want your members to have an option to have their username remembered across sessions, without staying logged in. To do this, go to your wrapper template (and login template if desired) and insert this in the login area:

<input type="checkbox" name="rememberme" value="1"> Remember me?


Then in order to show the saved value, you need to use {REMEMBERED} in the username input box like this:
Username: <input type="text" name="username" onfocus="this.value=''" size="10" value="{REMEMBERED}">