hi all,
i hv a problem about using session. i hv two php files. one is session.php and receive.php.
the problem is that when i access the page session.php at the first time, no output at all on receive.php. after that i access the page session.php again, correct result is show on receive.php.
so strange??
i got the same result on win2000+php4.3.0 and nt4.0+php4.0.4pl1.
got the same result even i change the value of register_globals to on and off
pls help, thanks.
ken
session.php
<?
session_start();
$_SESSION["stockcode"]="0001";
header ("Location: receive.php");
?>
receive.php
<?
session_start();
echo $_SESSION["stockcode"];
echo $stockcode
?>