Location: PHPKode > scripts > Login Script with PDO > login-script-with-pdo/forgotpass.php
<?php
require_once 'sys.class.php';

 session_start();
 /*
if(isset($_SESSION['username']))
{
	
	echo "user {$_SESSION['username']} loged in  ";
}
else
{
	header('location: yourloginpage.com');
}
$SetingsChange = new ChangeSetting;
$SetingsChange->SetEmail("hide@address.com"); // email to send new link for new pass 
$SetingsChange->SendMailForNewPass();


*/ 
// DO NOT PLACE TOGETHER 


/*
// put where to wait for  vouchers (after finish send new rand pass to user mail time limit for one hour)
$SetingsChange = new ChangeSetting;
$SetingsChange->SetNewPass(); 

*/
?>
Return current item: Login Script with PDO