I'm developing my site with shared hosting ssl certificate.
As Larry describes in the book, I'm trying to use the session id from the http pages after I get to the https pages, and be able to go back and forth.
From home page I click login, I log in and my code tries to redirect to loggedin page. But between login and loggedin there is a new id generated. That is what I think is happening. So that causes my loggedin page to fail because test says user is not logged in. And this will also cause everything else to fail but this is the first thing I'm testing.
Here is the code I am using, at the start of each page:
(I pass $sid in the url)
// Start output buffering:
ob_start();
// Start the session:
// if the session is available from the url use that otherwise start a new session
if ($_SERVER['REQUEST_METHOD']=='GET') {
if (isset($_GET['sid'])) {
$sid = $_GET['sid'];
if ($sid > 0) { // I set it zero when there is none
echo "