Hi I'm new to php. Hopefully someone can let me know what I'm doing wrong here. I get the following error message:
Warning: Cannot send session cache limiter - headers already sent in D:\Projects\Web\php\session.php on line 2
This is the (simple) php file
<?php
session_start();
?>
<head>
</head>
<body>
<?php
if (!isset($SESSION['count']))
{
$SESSION['count'] = 0;
$HTTP_SESSION_VARS['x'] = 0;
echo "<br/>";
echo "session variable <b>not</b> set.";
echo "<br/>";
}
else
{
$SESSION['count']++;
$HTTP_SESSION_VARS['x']++;
echo "session variable <b>set</b>.";
echo "<br/>";
};
echo "session value = " . $SESSION['count'];
echo "<br/>";
echo "<br/>";
echo "session x value = " . $HTTP_SESSION_VARS['x'];
echo "<br/>";
echo "session_id = " . session_id();
?>
<br/>
</body>
I have register_globals off and session.use_cookies off
Thanks for any help!