Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2887 connectés 

  FORUM HardWare.fr
  Programmation
  PHP

  Problème avec header et les sessions

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Problème avec header et les sessions

n°620207
titeus
Posté le 23-01-2004 à 14:41:09  profilanswer
 

J'ai crée un bout de site en local (avec easy php) et tout allait bien.
Une fois avoir mis ce site en ligne, j'obtiens ces deux erreurs :  
 
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /var/www/free.fr/b/b/******/ident.php:8) in /var/www/free.fr/b/b/******/ident.php on line 10
 
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/free.fr/b/b/******/ident.php:8) in /var/www/free.fr/b/b/******/ident.php on line 10

 
Avez vous une idée de l'erreur que je fais ?

mood
Publicité
Posté le 23-01-2004 à 14:41:09  profilanswer
 

n°620218
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 23-01-2004 à 14:48:58  profilanswer
 

Faut faire session_start() en tout début de code, avant toute balise HTML ou tout echo/print PHP. C'est écrit dans la doc :o


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°620242
titeus
Posté le 23-01-2004 à 14:54:46  profilanswer
 

Ok et pour le  
Warning: Cannot modify header information - headers already sent by (output started at /var/www/free.fr/b/b/******/frame.php:24) in /var/www/free.fr/b/b/******/fiche.php on line 16
 
c pareil ?

n°620251
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 23-01-2004 à 14:57:09  profilanswer
 

Bin j'imagine [:spamafote] La doc dit à propos de session_cache_limiter :

Citation :

Le limiteur de cache est remis à la valeur par défaut de session.cache_limiter à chaque démarrage de script PHP  . Donc, vous devrez appeler session_cache_limiter  à chaque page, et avant session_start  .


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°620261
titeus
Posté le 23-01-2004 à 15:00:49  profilanswer
 

J'ai résolu mon premier souci avec ce que tu m'as dit.
Mais pas le second post, ça doit etre autre chose.


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  PHP

  Problème avec header et les sessions

 

Sujets relatifs
probleme avec l'extension xslt pour php (sablotron)[C++] probleme dans la validation du choix d'un menu
Probleme apache et script cgi : impossible d'excuter du cgiproblème de \
VB+ WMI problème listProbleme d'ecriture d'un regex.
Problème d'affichage d'une variable[publipostage word OLE] : problème étrange
PHP&Mysql : problème de retour à la ligne (bibliothèque JS Overblib)probleme en VHDL
Plus de sujets relatifs à : Problème avec header et les sessions


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR