|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17087 No SID constant in PHP 4.2.0-win32
Submitted: 2002-05-08 02:26 UTC Modified: 2002-05-08 02:46 UTC
From: chros at freemail dot hu Assigned:
Status: Closed Package: Session related
PHP Version: 4.2.0 OS: WinXP
Private report: No CVE-ID: None
 [2002-05-08 02:26 UTC] chros at freemail dot hu
The problem is, that I couldn't transmit the SID constant in URL under PHP 4.2.0 win32! 
(the session_name() . "=" . session_id() works) 

for example: header("Location: temp.php?" . SID); 
<a href="temp.php?<?php echo SID ?>">temp</a> 

or a much simplier example: within a page:
   echo SID;

Nothing happens .... 

Is it a bug or just I'm stupid (I forgot something with the variable scope) ??? 

OS: WinXP 
Apache with PHP CGI
php4.2.0 win32 !!! 

register_globals off; 
auto_tans_sid on;



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-08 02:29 UTC]
This is indeed a bug, and it's fixed in CVS. You can try the latest stable snapshot from or wait for 4.2.1 which will be released monday.

 [2002-05-08 02:46 UTC] chros at freemail dot hu
thanx for the quick answer !!

I'll wait till monday ...

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Feb 05 17:04:43 2023 UTC