JamesKer1 wrote:MOD EDIT: This suggestion is geared towards a feature to remember usernames and passwords once accessing the home screen, but is similar to this suggestion about no automatic sign outs.
View spearfish's "5 minute fix" to implement this idea:spearfish wrote:As a PHP programmer, I know that this is about a five minute fix. Come on lack, your five minutes could save the rest of us hours (scary thought: if it takes 15 seconds to log in, and you log in five times a day for a year, you've spent 7 hours and 36 minutes doing nothing but filling in that form).
I'll even code it in for you if you want. Ready?
Add to login.php:
$inThreeMonths = 60 * 60 * 24 * 90 + time();
setcookie("account", $_POST['username'], $inThreeMonths, '/');
Then on the login form, change:
<input class="field" name="username" id="username" maxlength="16" value="" tabindex="1" type="text">
To:
<input class="field" name="username" id="username" maxlength="16" value="<?php $_COOKIE['account'] ?>" tabindex="1" type="text" />
That will result in the username being sticky for three months. Then you can add a "forget me" link.
Here's what that is (forget.php):
setcookie ("account", "", time() - 3600);
header(" Location: http://www.conquerclub.com/ ");
~~~
Making the user stay logged in would be as changing the php.ini if you use sessions, or setting an expiration time if you use cookies. I don't have your login.php script so I can't help there.
Not sure if anyone has suggested this yet...
But what about an 'automatic log-in' feature. I hate having to type my username and password in every time. Maybe I'm just lazy.