probleme ecriture cookie ouverture session php chez Amen
Posté : 02 avr. 2010, 21:54
Bonjour,
Après avoir effectué une recherche sur le forum où malheureusement je n'ai pas trouvé de réponse je me permets de vous soumettre un problème. Mon niveau en programmation PHP est nul...
j'ai monté sous joomla un site pour notre école (http://www.cfpalma.net) et j'aurais bien voulu installer un script php "Cahier de textes" sur mon site mais j'ai des problèmes d'ouverture de session en php.
C'est un script qui devrait nous permettre d'avoir un cahier de textes en ligne pour notre école.
j'ai installé le script dans un répertoire directement sous la racine de mon site. Lorsque j'essaye de démarrer le script http://cdt.cfpalma.net j'ai les erreurs suivantes :
Warning: session_start() [function.session-start]: open(/tmp/5/c/3/sess_5c31ede7851b05cde092497616f5ed9d, O_RDWR) failed: No such file or directory (2) in /htdocs/public/cdt/authentification/auth.php on line 48
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /htdocs/public/cdt/authentification/auth.php:48) in /htdocs/public/cdt/authentification/auth.php on line 48
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /htdocs/public/cdt/authentification/auth.php:48) in /htdocs/public/cdt/authentification/auth.php on line 48
Warning: Cannot modify header information - headers already sent by (output started at /htdocs/public/cdt/authentification/auth.php:48) in /htdocs/public/cdt/authentification/auth.php on line 83
Warning: Unknown: open(/tmp/5/c/3/sess_5c31ede7851b05cde092497616f5ed9d, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (3;/tmp) in Unknown on line 0
J'ai bien demandé à mon hébergeur (AMEN) ce qu'il en pense, mais il est pas très coopératif et un peu sourd...
J'ai fais un test en plaçant un fichier test.php dans mon dossier www
http://www.cfpalma.net/test.php
il contient simplement la ligne
<?php session_start(); ?>
Lors de son exécution j'ai le message suivant :
Warning: session_start() [function.session-start]: open(/tmp/8/9/2/sess_8929e56c74801285ce07b0ff2e3b2886, O_RDWR) failed: No such file or directory (2) in /htdocs/public/www/test.php on line 1
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /htdocs/public/www/test.php:1) in /htdocs/public/www/test.php on line 1
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /htdocs/public/www/test.php:1) in /htdocs/public/www/test.php on line 1
Warning: Unknown: open(/tmp/8/9/2/sess_8929e56c74801285ce07b0ff2e3b2886, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (3;/tmp) in Unknown on line 0
Il s'agirait donc d'un problème de sessions lié à Amen et indépendante de l'application CDT que j'essaye d'installer.
Paramétrage de mon php.ini ?
A l'exécution, il ne devrait pas y avoir de message d'erreur.
Comment paramétrer la chose pour pouvoir écrire des cookies de sessions? Je ne suis pas un spécialiste de la programmation et je ne me vois pas bidouiller le php.ini
Toute aide de votre part sera la bienvenue.
Merci d'avance
Pierre
Après avoir effectué une recherche sur le forum où malheureusement je n'ai pas trouvé de réponse je me permets de vous soumettre un problème. Mon niveau en programmation PHP est nul...
j'ai monté sous joomla un site pour notre école (http://www.cfpalma.net) et j'aurais bien voulu installer un script php "Cahier de textes" sur mon site mais j'ai des problèmes d'ouverture de session en php.
C'est un script qui devrait nous permettre d'avoir un cahier de textes en ligne pour notre école.
j'ai installé le script dans un répertoire directement sous la racine de mon site. Lorsque j'essaye de démarrer le script http://cdt.cfpalma.net j'ai les erreurs suivantes :
Warning: session_start() [function.session-start]: open(/tmp/5/c/3/sess_5c31ede7851b05cde092497616f5ed9d, O_RDWR) failed: No such file or directory (2) in /htdocs/public/cdt/authentification/auth.php on line 48
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /htdocs/public/cdt/authentification/auth.php:48) in /htdocs/public/cdt/authentification/auth.php on line 48
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /htdocs/public/cdt/authentification/auth.php:48) in /htdocs/public/cdt/authentification/auth.php on line 48
Warning: Cannot modify header information - headers already sent by (output started at /htdocs/public/cdt/authentification/auth.php:48) in /htdocs/public/cdt/authentification/auth.php on line 83
Warning: Unknown: open(/tmp/5/c/3/sess_5c31ede7851b05cde092497616f5ed9d, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (3;/tmp) in Unknown on line 0
J'ai bien demandé à mon hébergeur (AMEN) ce qu'il en pense, mais il est pas très coopératif et un peu sourd...
J'ai fais un test en plaçant un fichier test.php dans mon dossier www
http://www.cfpalma.net/test.php
il contient simplement la ligne
<?php session_start(); ?>
Lors de son exécution j'ai le message suivant :
Warning: session_start() [function.session-start]: open(/tmp/8/9/2/sess_8929e56c74801285ce07b0ff2e3b2886, O_RDWR) failed: No such file or directory (2) in /htdocs/public/www/test.php on line 1
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /htdocs/public/www/test.php:1) in /htdocs/public/www/test.php on line 1
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /htdocs/public/www/test.php:1) in /htdocs/public/www/test.php on line 1
Warning: Unknown: open(/tmp/8/9/2/sess_8929e56c74801285ce07b0ff2e3b2886, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (3;/tmp) in Unknown on line 0
Il s'agirait donc d'un problème de sessions lié à Amen et indépendante de l'application CDT que j'essaye d'installer.
Paramétrage de mon php.ini ?
A l'exécution, il ne devrait pas y avoir de message d'erreur.
Comment paramétrer la chose pour pouvoir écrire des cookies de sessions? Je ne suis pas un spécialiste de la programmation et je ne me vois pas bidouiller le php.ini
Toute aide de votre part sera la bienvenue.
Merci d'avance
Pierre