$email, "name" => $name, "familyName" => $familyName, "role" => $role, ); $userDataEncoded = json_encode($userData); setcookie("userData", $userDataEncoded, time() + 3600, "/"); echo "
Utilisateur mis à jour avec succès.
"; header("Location: /account/profile?result=updatesuccess"); } else { echo "Erreur lors de l'exécution de la requête.
"; header("Location: /account/profile?result=updatefailed"); } } ?>email : $email
"; echo "name : $name
"; echo "familyName : $familyName
"; echo "password : $password
"; echo "hashedPassword : $hashedPassword
"; echo "oldEmail : $oldEmail
"; ?>