Can no longer login in after moving hosting companies
I have just moved hosting companies and everything else seems to work except the login authentication. The login redirects successfully but when it goes to the next page the Restrict access code logs you back out again. This is the login user code:..
<?php require_once('../Connections/georgeconnect_i.php'); ?>
<?php require_once('../webassist/mysqli/authentication.php'); ?>
<?php require_once('../webassist/mysqli/queryobj.php'); ?>
<?php
$Authenticate = new WA_MySQLi_Auth($georgeconnect_i);
$Authenticate->Action = "authenticate";
$Authenticate->Trigger = (isset($_POST["Submit"]) || isset($_POST["Submit_x"]));
$Authenticate->Name = "DatabaseLogin";
$Authenticate->Table = "login";
$Authenticate->addFilter("username", "=", "s", "".((isset($_POST["username"]))?$_POST["username"]:"") ."");
$Authenticate->addFilter("password", "=", "s", "".((isset($_POST["password"]))?$_POST["password"]:"") ."");
$Authenticate->addFilter("Company", "=", "s", "Ascars");
$Authenticate->RememberMe = (false);
$Authenticate->SaveLogin = (false);
$Authenticate->AutoReturn = false;
$SuccessRedirect = "home.php";
$FailedRedirect = "index.php";
if (function_exists("rel2abs")) $SuccessRedirect = $SuccessRedirect?rel2abs($SuccessRedirect,dirname(__FILE__)):"";
if (function_exists("rel2abs")) $FailedRedirect = $FailedRedirect?rel2abs($FailedRedirect,dirname(__FILE__)):"";
$Authenticate->SuccessRedirect = $SuccessRedirect;
$Authenticate->FailRedirect = $FailedRedirect;
$Authenticate->execute();
?>
And this is the code on the redirected page....
<?php require_once('../Connections/georgeconnect_i.php'); ?>
<?php require_once('../webassist/mysqli/rsobj.php'); ?>
<?php require_once('../webassist/mysqli/authentication.php'); ?>
<?php
if ("" === "") {
$RestrictAccess = new WA_MySQLi_Auth();
$RestrictAccess->Action = "restrict";
$RestrictAccess->Name = "DatabaseLogin";
$RestricAccessRedirect = "../index.php";
if (function_exists("rel2abs")) $RestricAccessRedirect = $RestricAccessRedirect?rel2abs($RestricAccessRedirect,dirname(__FILE__)):"";
$RestrictAccess->FailRedirect = $RestricAccessRedirect;
$RestrictAccess->execute();
}
?>