Revamp the Login / Logout System [Pending]
Posted: Sun Mar 23, 2008 8:39 pm
My suggestion is simple. Rework the login / logout system. It's a pain in the butt to have to re-enter my username and password every time I come back to conquer club. Either make it so that you stay logged in after the browser closes, or at least make the username "sticky" (even if you're logged out, the username is still in place).
This is needed because it's annoying to have to keep logging in! Come on!
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.
This is needed because it's annoying to have to keep logging in! Come on!
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.