bonjours a tous!!!
voila j'ai fait une petite page d'authentification sur mon site mais cependant,
apres avoir bien fait quelque setcookie,
j'ai rajouté un autre code qui en gros dit si le cookie authentification existe et que il est égal à 1 alors on affiche le pseudo qui se trouve dans $_COOKIE['pseudo']
et sinan, on affiche le formulaire d'authentification
mais le problème est que le formulaire d'authentification s'affiche toujours bien que le cookie soit présent
je rajoute car la est peut etre le probleme j'ai fait une include d'une page nommé etat sur mon index, et dans cette page etat, j'ai inclu la page formulaire_authentification.php
voici le code de toute la page
<html>
<head>
<title>etat</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#cccccc">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="26"><img src="images/coin-haut-gauche.gif" width="26" height="26">
</td>
<td width="99" background="images/haut-mileu.gif"> </td>
<td width="26"><img src="images/coin-haut-droite.gif" width="26" height="26"></td>
</tr>
<tr>
<td width="26" height="22" rowspan="2" background="images/haut-gauche-2.gif">
</td>
<td width="99" align="center" background="images/haut-milieu-2.gif">
<?php
if (isset($_COOKIE['authentification']) AND $_COOKIE['authentification'] == 1)
{
echo $_COOKIE['pseudo'];
}
else
{
include("/mnt/146/sdb/6/f/quitoboss/v3/authentification/formulaire_authentification.php");
}
?>
</td>
<td width="26" rowspan="2" background="images/haut-droite-2.gif"> </td>
</tr>
<tr>
<td align="center" background="images/haut-milieu-2.gif"> </td>
</tr>
<tr>
<td width="26"><img src="images/coin-bas-gauche.gif" width="26" height="29"></td>
<td width="99" background="images/bas-milieu.gif"> </td>
<td width="26"><img src="images/coin-bas-droite.gif" width="26" height="29"></td>
</tr>
</table>
<p> </p>
</body>
</html>
voili voilou j'espere me faire aider merci d'avance à tous!!