Edit report at http://bugs.php.net/bug.php?id=31184&edit=1
ID: 31184 Comment by: spam4 at yahoo dot com Reported by: kamil at kube dot org Summary: Illegal Characters in SessionID, session_name when set to "sid". Status: Closed Type: Bug Package: Session related Operating System: Redhat 9 PHP Version: 5CVS-2004-12-19 (dev) New Comment: http://lozol.yolasite.com/ purchase lozol pay pal without rx Previous Comments: ------------------------------------------------------------------------ [2004-12-26 14:13:18] kamil at kube dot org I just tried again and now it works fine. Might it's a misconfiguration - I can't reproduce it right now. Will watch it furthermore and post it here if it'll return. ------------------------------------------------------------------------ [2004-12-21 14:28:44] der...@php.net Hmm, i see what you mean now, but it works very fine here. The output of the script: <? // This code works fine (when changing foo to sid it also does not work). session_name('sid'); session_start(); echo 'Session Name: '.session_name().'<br />'; echo 'Session Id: '.session_id().'<br />'; ?> shows: Session Name: sid Session Id: 034dafeac0bb2986bda981eb89f6f46d perhaps you have some settings in php.ini, or session_auto_start set to true? ------------------------------------------------------------------------ [2004-12-21 13:58:09] kamil at kube dot org Hi, but the problem is that the warnings are not refering to the sessions _name_, but to the session _id_: this one is claimed to contain illegal characters. When you look at the example it sure does, because it is empty and hasn't been generated at all. Why I'm so eager to know what it's all about, is that it _did work_ for the last 3 years now with a session name "sid" (all lower case, earlier php versions) and now doesn't work at all. Changing the name to eg. "sess" or "PHPSESSID" works fine (see example with foo). ------------------------------------------------------------------------ [2004-12-19 23:04:38] j...@php.net Not to supplant Derick, but I have a guess: "SID" is a defined constant in PHP that gives the current session identifier, hence the warnings. This is pretty clear in the documentation, so I would almost guess it to be expected behavior. ------------------------------------------------------------------------ [2004-12-19 12:55:15] kamil at kube dot org Hi Derik, sorry to bother you, but could you tell me why this is bogus? I spent the whole day searching for an explanation and didn't found anything at google nor at the php.net pages. A session name "sid" did work fine all the time until now... Thanks, Kamil ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=31184 -- Edit this bug report at http://bugs.php.net/bug.php?id=31184&edit=1