cookie problem
Posted: Wed Feb 25, 2004 8:57 pm
I use cookie to save user login name and password, then the user don't need to login again next time.
the following code just for testing...but it seems the cookie did save the value, help me pls~~~
<?
$data0 = $data1;
$data1 = $data1 + 100;
setcookie( "data1", $data1 );
echo "comming the site, \$data1=$data0<BR>";
echo "leaveing the site, \$data1=$data1<BR>";
?>
the following code just for testing...but it seems the cookie did save the value, help me pls~~~
<?
$data0 = $data1;
$data1 = $data1 + 100;
setcookie( "data1", $data1 );
echo "comming the site, \$data1=$data0<BR>";
echo "leaveing the site, \$data1=$data1<BR>";
?>