Hello my friends,
I am experiencing some weird problem, that I believe is in my PHP interpreter, but I cant figure it out by myself.
I am dealing with a simple session variable issue...
I have two scripts, in the first I create a variable and register that:
<?php
session_start();
session_destroy();
$test = 0;
session_register("test");
header("Location: increase.php");
?>
In the second script, I just catch the variable and increase it:
<?php
session_start();
$test = $_SESSION["test"];
$test++;
print $test;
?>
Simple, uh? Well, anytime I press F5 the $test variable should be increased by 1, but... nothing happens!
I can register and pass variables but not update them.
The weirdest of the whole thing is that it not works on my development environment (I am running PHP 4.3.4 under Apache, Windows 98) , but works on the server where is the website of my customer (PHP 4.3.3, Apache, Linux).
Can anyone help me to fix that?
Thanks a lot!