ID:               31184
 User updated by:  kamil at kube dot org
 Reported By:      kamil at kube dot org
-Status:           Feedback
+Status:           Closed
 Bug Type:         Session related
 Operating System: Redhat 9
 PHP Version:      5CVS-2004-12-19 (dev)
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2004-12-21 14:28:44] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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

------------------------------------------------------------------------

[2004-12-19 12:33:43] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

.

------------------------------------------------------------------------

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/31184

-- 
Edit this bug report at http://bugs.php.net/?id=31184&edit=1

Reply via email to