I have made an example including session variable and self-refreshing. Here is my files:
// 111.php
session_start();
$aaa="i love you!";
if (session_register("aaa")) echo "true :".$aaa;
else echo "false";
?>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF">
<p> </p>
<p><a href="222.php" target="_self">222.php</a></p>
</body>
// 222.php
<?
session_start();
echo $aaa;
?>
<head>
<title>Untitled Document</title>
<meta http-equiv="Refresh" content="2; url=<? echo $PHP_SELF; ?>">
</head>
<body bgcolor="#FFFFFF">
</body>
You can see "refresh" within the head part of file 222.php. But when I run these scripts,I can only see one "i love you!" as the output of 222.php. It seems that "Refresh" can not work for more than one time.
Anybody knows?
Thanks in advance.