#25464 [Opn]: SID always defined or not documention bug?
| From: | sniper@php.net | Date: | Wed, 10 Sep 2003 04:08:08 +0000 |
| Subject: | #25464 [Opn]: SID always defined or not documention bug? | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969356248@lists.php.net to get a copy of this message | ||
ID: 25464
Updated by: sniper@php.net
Reported By: jc at mega-bucks dot co dot jp
Status: Open
Bug Type: Documentation problem
Operating System: Linux
PHP Version: 4.3.3
New Comment:
SID is always defined. Someone should fix that one manual page. :)
The constant 'SID' is defined to '' if the session id is set in a
cookie for the request.
Previous Comments:
------------------------------------------------------------------------
[2003-09-09 23:22:47] jc at mega-bucks dot co dot jp
Description:
------------
These two documentation pages have conflicting views on wether SID is
always defined or not. The first one says it only defined is the right
cookie wasn't sent and the other says it is always defined.
Which one is it :)
http://jp2.php.net/session_id
Note that SID is only defined if the client didn't send the right
cookie. See also Session handling.
http://jp2.php.net/manual/en/ref.session.php
Alternatively, you can use the constant SID which is always defined.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25464&edit=1