X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=php%2Fconnexion.php;fp=php%2Fconnexion.php;h=6b5e26cf3e82082bb3926a0f578cc490a0f6dabd;hb=27f3004da65f2b5803709b3fa76a791c9b38a0c9;hp=0000000000000000000000000000000000000000;hpb=262be7e249593a2764a7c452f70dc5ac68887d5c;p=cl7.git diff --git a/php/connexion.php b/php/connexion.php new file mode 100644 index 0000000..6b5e26c --- /dev/null +++ b/php/connexion.php @@ -0,0 +1,39 @@ +valide) + { + setcookie ("COOKIE_INFO_PATICIPANT", $le_participant->info->id, time() + 31104000); + } +} +else if (isset($HTTP_COOKIE_VARS["COOKIE_INFO_PATICIPANT"])) # le cookie existe deja chez le participant +{ + $le_participant = new Participant($HTTP_COOKIE_VARS["COOKIE_INFO_PATICIPANT"]); +} +else +{ + $le_participant = new Participant(); +} + +?> \ No newline at end of file