|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-11-03 02:27 UTC] vincent_f40 at hotmail dot com
Description: ------------ [Thu Nov 3 00:49:10 2005] [error] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: The session id contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in /home/httpd/html/includes/session_init.inc on line 70 [Thu Nov 3 00:49:11 2005] [error] PHP Warning: Unknown: The session id contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in Unknown on line 0 [Thu Nov 3 00:49:11 2005] [error] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0 1) Cant reproduce the errors. As the site works fine, only sometimes the above error appears in the log files. 2) session_write_close() is being used. 3) session_name() uses only the characters [a-z]. 4) As the site works /tmp is oke as well.(perms, etc.) 5) There is enough free disk space in /tmp as well. a) using apache 1.3.34, php compiled as module(apxs) b) Kernel: 2.6.9-11.ELsmp (double processor) Is this a bug or a php programming error ? As it happens not always, just random/sometimes. Search the net for hours...no luck in finding the explanation. Hope to find some clue here. Thanks. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 23:00:01 2025 UTC |
file: config.inc <?php $conf['session_name'] = "somename"; $conf['session_init'] = "session_init.inc"; $conf['domain'] = ".domain.com"; ?> file: session_init.inc <?php function a(){ some code } session_name($conf['session_name']); session_start(); if else statements if (!$_COOKIE['wid']) { setcookie("wid", $_GET['wid'], time()+(3600 * 24 *365), "/" , $conf['domain']); } ?> file: index.php <?php require_once("config.inc"); require_once($conf['session_init']); html webpage code ?> I am not able to reproduce the error. The error just appears sometimes in the log files...But basicly this is the setup. Some pages we use frames...but I guess that should not be a problem. Thanks, Vince