setcookie("COOKIE_INFO_PARTICIPANT", "", time() - 100); # 'efface' le cookie membre
unset($_COOKIE["COOKIE_INFO_PARTICIPANT"]);
}
-
+
if (isset($_POST['log'])) # le membre se logue
{
$this->participant = new Participant($_POST['pseudo'], $_POST['password']);
- if ($this->participant->valide)
+ if ($this->participant->existe())
{
setcookie("COOKIE_INFO_PARTICIPANT", $this->participant->info->id, time() + 31104000);
$this->message_utilisateur = "Loggation ok";