session start et headers already sent
bonjour à tous,
j'ai un petit soucis avec ma session_start()!
je me log correctement au compte que j'ai créé et en me logan il m'affiche correctement le nom de l'utilisateur mais il m'affiche aussi un warning qui est le suivant :
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/62/a/r/c/arcotec.fr/www/session/index2.php:10) in index2.php on line 56
je vous donne la partie de mon code
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Arcotec | Accueil</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Description" content="Description..." />
<meta name="Keywords" content="Mots clés..." />
<link href="css/page.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
background-image: url(img/FOND.gif);
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
</style>
</head>
<body bgcolor="#ffffff">
<table style="text-align:left;border-width:0px;width:994px;" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3"><img src="img/LOGO.gif" id="Logo" alt="Arcotec | Normes et Sécurités" style="width:628px;height:76px;"/></td>
<td colspan="5"><img src="img/SLOGAN.gif" id="Slogan" alt="La plus belle réussite, votre confiance..." style="width:366px;height:76px;"/></td>
</tr>
<tr>
<td colspan="8" style="width:994px;height:10px;background-image: url('img/A1.png');"></td>
</tr>
<tr>
<td rowspan="7" style="width:15px;height:518px;background-image: url('img/A3.png');"></td>
<td colspan="6" class="navigation" style="width:964px;height:35px;background-image: url('img/NAVIGATION.gif');">
<a href="index.htm" class="navigation_on">Accueil</a>
<a href="catalogue.htm" class="navigation_on">Catalogue</a>
<a href="nouveautes.htm" class="navigation_on">Nouveautés</a>
<a href="engagements.htm" class="navigation_on">Nos engagements</a>
<a href="entreprises.htm" class="navigation_on">Espace client</a>
<a href="contact.htm" class="navigation_on">Nous contacter</a>
<a href="plan.htm" class="navigation_on">Plan d'accès</a></td>
<td rowspan="7" style="width:15px;height:518px;background-image: url('img/A4.png');"></td>
</tr>
<tr>
<td colspan="6" class="situation" style="width:964px;height:17px;background-image: url('img/SITUATION.gif');">
Vous êtes ici : <a href="index.htm" class="situation_on">Accueil</a></td>
</tr>
<tr>
<td colspan="6" style="width:964px;height:10px;background-image: url('img/B1.gif');"></td>
</tr>
<tr>
<td rowspan="3" style="width:10px;height:446px;background-image: url('img/B3.gif');"></td>
<td rowspan="3" style="width:563px;height:406px;background-image: url('img/CONTENU.gif');"><div id="contenu_gauche">
<p class="contenu_gauche_titre">Bienvenue sur Arcotec.fr</p>
<?
session_start();
if (isset ($_POST['login']))
echo '<p class="contenu_gauche_texte">';
echo 'bonjour ' .$_SESSION['login'];
?> |
merci pour votre aide!