[Cookies] Ma redirection avec header ne fonctionne pas
Bonjour à jour,
J'ai un petit soucis avec ma redirection. La page que j'appele avec la fonction header ne s'affiche pas.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
<?
include("config.php");
if(($motdepasse==$admin_pass)&&($login==$admin_username))
{
setcookie("proaccess","identok",time()+7200,"");
header("location: choix.php");
}
else
{
header("location: administrateur.php");
}
?> |
J'ai ceci comme erreur :
Code:
1 2 3 4
|
Warning: Cannot modify header information - headers already sent by (output started at /home/dolphiin/www/proaccess/config.php:25) in /home/dolphiin/www/proaccess/sidentifier.php on line 5
Warning: Cannot modify header information - headers already sent by (output started at /home/dolphiin/www/proaccess/config.php:25) in /home/dolphiin/www/proaccess/sidentifier.php on line 6 |
Quelqu'un pourrai m'aider ?
dolphi