Why do I get 500 Internal Server Error each time I start code with session?
here is code from book as example of session:
<?php
// Initiate the session
session_start();
?>
<html>
<head>
<title>First Session</title>
</head>
<body>
<?php
// If the tracker variable is not registered, register it now.
if(!isset($SESSION["tracker"]))
{
$tracker = 0;
session_register("tracker");
}
// Increment the tracker variable
$SESSION["tracker"]++;
// Display basic session information up to this point
print("<br /><br />Tracker = " . $_SESSION["tracker"] . "<br />");
print("session_id =" . session_id() . "<br />");
?>
</body>
</html>