I am having trouble with the $HTTP_SESSION_VARS and _SESSION variables not being passed or recognized!
I am running Apache.1. 3.27 on WIN 32 (Windows 2000 sp2) and PHP 4.3.1 with the Zend Optimizer and using MySQL 4.0.12 as my database
I can see phpinfo() no problem
Have set session.use_trans_sid to ON ; session.name to PHPSESSID ; session.auto_start to ON; register_globals to ON;
Cookies are enabled on system
Apache is serving up web pages on htdocs no problems
MySql is working perfectly.
I am developing on Dreamweaver MX with no problems
Full length SID’s are sent OK to the correct temp directory when a browser session is started.
Test code (starting at the very top of the file) I am running is as follows …. I can see $myvar OK, but no SESSION variables :
<?php session_register("myvar");
$myvar = "15";
echo "\$SESSION['PHPSESSID'] : $SESSION['PHPSESSID'] <br>";
echo "\$SESSION['SID'] : $SESSION['SID'] <br>";
echo "\$SERVER['PHP_SELF'] : $SERVER['PHP_SELF'] <br>";
echo "\$HTTP_SERVER_VARS['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF'] <br>";
echo "\$myvar : $myvar <br>";
phpinfo(); ?>
<html>
<head>
<title>Test Sessions</title>
<body>
</body>
</html>
This SESSION variable thing is the only problem I am having. I must be missing something very subtle! Any help is greatly appreciated