Esempio n. 1
0
function makeSession($email, $password)
{
    $voluntario = new Voluntario(findVoluntarioByEmail($email));
    if ($voluntario->getPassword() == $password) {
        return $voluntario->getID();
    }
    return null;
}
Esempio n. 2
0
function makeSession($email, $password)
{
    $voluntario = new Voluntario(findVoluntarioByEmail($email));
    if ($voluntario->getPassword() == $password) {
        $_SESSION['voluntario'] = $voluntario->getID();
    }
}