Been up for four f**********g hours too late trying to find something
wrong with my code, lately finding out, that there apparently is nothing
wrong with it (in this particular case). I wish for verification.

As a developement box I run a W2K, newest Apache and PHP 4.0.whatnot.
Had this problem of first page loaded not getting a SID. It required
reloading once, before sessions started working for itself. Impossible
to accept, since login (through a different file) is possible straight
from this page. Header("location: referer etc") sending me back to the
unsessioned page. No amount of forceful SID entries helped. Got very
annoyed and pulled one of those sure-to-work "hello world" programs:

<?
session_start();
session_register("SESSION");

if (! isset($SESSION)) {
 $SESSION["count"] = 0;
 echo "<li>Counter initialized, please reload this page to see it
increment";
} else {
 echo "<li>Waking up session $PHPSESSID";
 $SESSION["count"]++;
}
echo "<li>The counter is now $SESSION[count] ";
?>

Guess what, it did not work either. Except that it did, uploaded to the
providers server (basic unix stuff. More or less the same version on
PHP), as did my own script. Now why is that?

Does someone know a explanation/remedy for this, since it makes
developing slightly inconsistent with this requiring that gimmick and
that not.

Regards to anyone caring to answer.

- Jon Thompson Coon


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to