session start

Il y a 203 utilisateurs connus et inconnus. Pour voir la liste des connectés connus, cliquez ici
Ajouter une réponse



 Mot :   Pseudo :  
 
Bas de page
Auteur
 Sujet : session start
 
Plus d'informations

bonjour à tous,
 
j'ai un petit soucis avec ma session start, il m'affiche un warning!
je voudrais savoir comment le resoudre, j'ai fait tout mon possible mais rien a faire je n'y arrive pas!
 
voici le code
 

Code :
  1. <?php
  2. session_start();
  3. ?>
  4. <head>
  5. <title>Arcotec | Accueil</title>
  6.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7.     <meta name="Description" content="Description..." />
  8.     <meta name="Keywords" content="Mots clés..." />
  9.     <link href="css/page.css" rel="stylesheet" type="text/css" />
  10. <style type="text/css">
  11. body {
  12.     background-image: url(img/FOND.gif);
  13.     margin-left: 0px;
  14.     margin-top: 0px;
  15.     margin-right: 0px;
  16.     margin-bottom: 0px;
  17. }
  18. </style>
  19. </head>
  20. <body bgcolor="#ffffff">
  21. <table style="text-align:left;border-width:0px;width:994px;" cellpadding="0" cellspacing="0">
  22.   <tr>
  23.    <td colspan="3"><img src="img/LOGO.gif" id="Logo" alt="Arcotec | Normes et Sécurités" style="width:628px;height:76px;"/></td>
  24.    <td colspan="5"><img src="img/SLOGAN.gif" id="Slogan" alt="La plus belle réussite, votre confiance..." style="width:366px;height:76px;"/></td>
  25.   </tr>
  26.   <tr>
  27.    <td colspan="8" style="width:994px;height:10px;background-image: url('img/A1.png');"></td>
  28.   </tr>
  29.   <tr>
  30.    <td rowspan="7" style="width:15px;height:518px;background-image: url('img/A3.png');"></td>
  31.    <td colspan="6" class="navigation" style="width:964px;height:35px;background-image: url('img/NAVIGATION.gif');">
  32.    <a href="index.htm" class="navigation_on">Accueil</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  33.    <a href="catalogue.htm" class="navigation_on">Catalogue</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  34.    <a href="nouveautes.htm" class="navigation_on">Nouveautés</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  35.    <a href="engagements.htm" class="navigation_on">Nos engagements</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  36.    <a href="entreprises.htm" class="navigation_on">Espace client</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  37.    <a href="contact.htm" class="navigation_on">Nous contacter</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  38.    <a href="plan.htm" class="navigation_on">Plan d'accès</a></td>
  39.    <td rowspan="7" style="width:15px;height:518px;background-image: url('img/A4.png');"></td>
  40.   </tr>
  41.   <tr>
  42.    <td colspan="6" class="situation" style="width:964px;height:17px;background-image: url('img/SITUATION.gif');">
  43.    Vous êtes ici : <a href="index.htm" class="situation_on">Accueil</a></td>
  44.   </tr>
  45.   <tr>
  46.    <td colspan="6" style="width:964px;height:10px;background-image: url('img/B1.gif');"></td>
  47.   </tr>
  48.   <tr>
  49.    <td rowspan="3" style="width:10px;height:446px;background-image: url('img/B3.gif');"></td>
  50.    <td rowspan="3" style="width:563px;height:406px;background-image: url('img/CONTENU.gif');"><div id="contenu_gauche">
  51. <?
  52. if (isset ($_POST['login']))
  53. echo '<p class="contenu_gauche_texte">';
  54. echo 'bonjour ' .$_SESSION['login'];
  55. ?>


 
merci de votre aide

guich
Plus d'informations

Donnes l'erreur ... et si tu es chez free, crées un repertoire sessions a la racine. (google, session free)


---------------
www.guich.fr
Plus d'informations

bonjour,
 
merci de m'avoir répondu!
je t'explique un peu mieux.
je me log correctement et il m'affiche correctement le login de la personne mais il me donne quand meme un message d'erreur 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/index.php:1) in index.php on line 2
 
je ne comprend pas pourquoi, portant il me rentre dans la session et m'affiche le mon de la personne logger!
 
merci de ton aide

pourquoi faire cent fois la même chose ?
Plus d'informations

t'aurai pas un BOM au début de ton fichier php ?


Aller à :
Ajouter une réponse
 

Annonces Google
Produits relatifs
Publicité