Location: PHPKode > scripts > Login Script with PDO > login-script-with-pdo/changepass.php
<?php
 session_start();
if(isset($_SESSION['username']))
{
	
	echo "user {$_SESSION['username']} loged in  ";
}
else
{
	header('location: yourloginpage.com');
}


require_once 'sys.class.php';
$SetingsChange = new ChangeSetting;
$SetingsChange->SetOldPass("dsfsdfsdfg");
$SetingsChange->SetPassword("newpassssss"); // set new pass 
$SetingsChange->ChangePass()

?>
Return current item: Login Script with PDO