php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #25464 SID always defined or not documention bug?
Submitted: 2003-09-09 23:22 UTC Modified: 2003-09-10 03:07 UTC
From: jc at mega-bucks dot co dot jp Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.3 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jc at mega-bucks dot co dot jp
New email:
PHP Version: OS:

 

 [2003-09-09 23:22 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-10 00:08 UTC] sniper@php.net
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.

 [2003-09-10 00:15 UTC] sniper@php.net
This is actually fixed already in CVS..the manual just hasn't been generated since that. Patience. :)

 [2003-09-10 00:23 UTC] jc at mega-bucks dot co dot jp
Great! Thanks for looking into this.
 [2003-09-10 03:07 UTC] derick@php.net
Jani,

when was this fixed? The generated docs are about two weeks old...

Derick
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Nov 20 18:00:01 2025 UTC