I'm running PHP 4.3 on a Windows .net server with Apache 2. Please look at the 
following code as I cannot figure out what I'm doing wrong.

Page1.....
session_start();
session_register("step");
$step=1;
header("location: page_A.php");

Page_A.....
session_start();
extract($_SESSION);
$step=2;
header("location: page_B.php");

Page_B.....
session_start();
extract($_SESSION);
print("$step");

Output is always "1". I thought that session variables were global? What am I doing 
wrong?

Reply via email to