Thanks for the response! I tried your suggestion but it gives a similar problem:
Warning: Undefined index: VDG_SESSION in C:\abriaweb\apache\htdocs\store\sessiontest.php on line 31
Warning: Undefined index: count in C:\abriaweb\apache\htdocs\store\sessiontest.php on line 31
1
refresh
line 31 is:
$_SESSION['VDG_SESSION']['count']++;
Do you have any other suggestions?
Thanks again,
-Mark
<?
// BRING IN INPUT VARIABLES
while(list($key, $val) = each($REQUEST)) {
$temp = "\$varType = gettype(\$REQUEST[\"$key\"]);";
eval($temp);
if (($varType == "string") | ($varType == "NULL")) {
$temp = "\$$key = \"$val\";";
eval($temp);
}else{
$temp = "\$$key = $val;";
eval($temp);
}
$temp = "GLOBAL \$$key;";
eval($temp);
} // END BRING IN INPUT VARIABLES
session_save_path("c:\");
if (isset($PHPSESSID)) {
session_id($PHPSESSID);
}
session_start();
session_register("VDG_SESSION");
$_SESSION['VDG_SESSION']['count']++;
?>
<BODY>
<? echo $_SESSION['VDG_SESSION']['count']; ?><p>
<A HREF="sessiontest.php?<?=SID?>">refresh</A>
</BODY>
nate parsons wrote:
which line is line 31 just out of curiosity?
Your problem is probably this though:
$VDG_SESSION["count"]++;
should be:
$_SESSION['VDG_SESSION']['count']++;
echo $VDG_SESSION["count"];
should be:
echo $_SESSION['VDG_SESSION']['count'];