What could I have done to cause all $_SESSION[] vars to be empty?
I've been working on this project for a few weeks. It is made up of 5 pages and 2 session vars. Everything has been working fine until about 2 hours ago. The Session variables are empty after the first page.
Here is the first one which is set on the first page. $ClinicID is now only good on the first page. I'm still testing so I set it here and it never changes on any other pages.
<?php
session_start();
$_SESSION['ClinicID'];
$ClinicID="My Clinic";
?>
On the second page I have
<?php
session_start();
$_SESSION['PatID'];
?>
Just to see what is going on I have....
print ("<p>ClinicID = {$ClinicID}</p>");
As the very first line on the second page. $ClinicID is empty. This morning everything was working fine. Now nothing. I restarted everything and still it does not work.
$PatID has the same problem. I set it and it is only good on that page.
What did I do?