The error occurs on both pages: login.php, portal.php
okay, so the php was in the body of the html page.
i moved it to right after the head tags and stripped all space.
still getting same error message but without any html formatting
like i said it works just fine on another server.
i'm wondering if it's a php version issue: the old/current service uses 3.4.8 while the new service uses 3.4.4
here is the php that starts the session:
login.php - validates user & if valid, starts session & redirects to extranet
// start session
session_start();
$SESSION['User'] = $User;
$SESSION['FirstName'] = $FirstName;
$SESSION['LastName'] = $LastName;
$SESSION['CompanyID'] = $CoID;
$SESSION['valid_log'] = array($SERVER['REMOTE_ADDR'], $User);
Here's the php that checks the session on extranet pages (portal.php):
<!-- PHP session ID code -->
<?php
session_start();
if ($SESSION['valid_log'][0] != $SERVER['REMOTE_ADDR'] ||
$SESSION['valid_log'][1] != $SESSION['User'])
{
//redirect to error page
echo '<META HTTP-EQUIV="Refresh" Content="1; URL=../error_access.html">';
exit();
}
?> <!-- END PHP code -->
The error occurs on both pages: login.php, portal.php