Where is SID?

From: Michael Satterwhite (michael.XREMOVETHIS_at_weblore.com)
Date: 02/22/05


Date: Tue, 22 Feb 2005 02:46:20 GMT

OK, I'll admit I've been doing it wrong (using session_register()), so I'm
trying to correct my ways, but...

My script starts with
<?php
 session_start();
?>

In the body of my page a link as follows:

  <a href="targetUrl.php?<php print SID; ?>">Target text</a>

Problem: SID is an empty string. I even tried
 echo "SID: " . SID . '<br />';

and SID echoes as an empty string. Why?

---Michael



Relevant Pages

  • Re: PHP Image by Default
    ... The script looks in the subdirectory for a random image and ... does it return an empty string etc. ...
    (alt.php)
  • Re: PHP Image by Default
    ... The script looks in the subdirectory for a random image and ... does it return an empty string etc. ...
    (alt.php)
  • Re: Where is SID?
    ... >>and SID echoes as an empty string. ... > appears the SID constant is only set under certain circumstances. ...
    (comp.lang.php)
  • Re: 5.2.2 and POST data change?
    ... scripts immediately broke, although the 5.2.2 release notes don't seem to indicate I should have a problem. ... Starting yesterday it's always an empty string. ... How hould I interpret the 'php' protocol, and what does //input point to? ... zip, php, file, data, http, ftp, compress.bzip2, compress.zlib, https, ftps ...
    (comp.lang.php)
  • Re: Get URL
    ... > This is best done by the PHP files themselves. ... * Retrieves the value of an element of an associative array. ... The default is the empty string. ... * Array identifier. ...
    (comp.lang.php)