well, this shouldnt be too difficult to make, if your using some form of archiving or database. For example, bill registers, and in your database, let's say a table called passwords will have at least three columns , his random password, whether it has been used, and the time he registered.
now you just need these functions:
once, check to see if once he logs in, his password is valid and whether he is allowed to use it:
if it finds the password, it checks it's status and time, if either comes back negative, he is not allowed to access.
Well, i can make a script, but I would need to know what your using to hold these passwords. but a sample script could be
function checkpass($password){
global $getpass, $password, $username;
$getpass=mysql_query("select * from passwords where username='$username' and password = password('$password')";
$checkstat=mysql_num_rows($getpass);
if ($checkstat==1) foundpass($getpass, $password, $username);
else denied(); }
to make it easier, make the time field a unix time stamp that counts the seconds from some time in the seventies:
function foundpass($getpass, $password, $username) {
global $getpass, $password, $username;
$now=gmdate("U");
$register=mysql_result($getpass, 0, 'registertime');
$status=mysql_result($getpass, 0, 'status');
if ($status == 'good') {
$days=(482460*60);
if ($now < ($status + $days)) accessgranted();
else denied();
}
else denied();
use this as a base for coding, let mek now if you need anything else