This used to work but last week my web host changed something on the server.
This script, aaa1.php, is in a subdirectory www.mydomain.com/OP
<?
session_start();
$_SESSION['clientid']="A1234";
echo('<meta http-equiv="Refresh" content="0; URL=http://www.mydomain.com/OP/aaa2.php">');
?>
aaa2.php is simply:
<?
session_start();
$clientid=$_SESSION['clientid'];
echo "Client: $clientid";
?>
and it works fine, giving a page showing "Client: A1234"
However if I put aaa2.php into the main, home directory and change aaa1.php to
<?
session_start();
$_SESSION['clientid']="A1234";
echo('<meta http-equiv="Refresh" content="0; URL=http://www.mydomain.com/aaa2.php">');
?>
ie, I start off in the OP sub-directory but change to the home directory, it doesn't work.
The result just shows "Client:"
Like I say it used to work but doesn't now. Help!
Thanks for any advice.
Andy