非常感谢任何帮助......
我有一些网站可以访问Hostmonster上的MySQL数据库。今天早上登录停止了工作。登录仍然正确 - 它们在Navicat和其他环境中工作。托管支持表示他们的结果没有任何改变。重要的是要注意,在停止工作之前,没有任何编码发生过变化,这种情况发生在多个域/网站上。
初步测试SEEMS向我表明在登录过程中建立的会话变量不会以某种方式传递,但也许我错了。这是登录后第二页的代码。该开关突然不起作用,而不是重定向浏览器,它停留在此页面上。第一次发布,请原谅任何新手错误,如何发布问题。
<?php
if(!session_id()) session_start();
switch($_SESSION['access']) {
case "1":
header("Location: contestant-account.php");
break;
case "2":
header("Location: coach-account.php");
break;
case "3":
header("Location: coach-account.php");
break;
case "4":
header("Location: coach-account.php");
break;
} ?>
登录页面代码......
<?php
@session_start();
?>
<?php require_once('Connections/myisateam.php'); ?>
<?php require_once("webassist/form_validations/wavt_scripts_php.php"); ?>
<?php require_once("webassist/form_validations/wavt_validatedform_php.php"); ?>
<?php require_once("webassist/security_assist/helper_php.php" ); ?>
<?php
if ((isset($_POST["LogIn_submit"])&&(!isset($_POST["Log_In_group_Remember_my_information"])) && $_POST["LogIn_submit"] != "")) {
setcookie("RememberMePWD", "", time()+(60*60*24*30), "/", "", 0);
}
?>
<?php
if ((isset($_POST["LogIn_submit"])&&(!isset($_POST["Log_In_group_Remember_my_information"])) && $_POST["LogIn_submit"] != "")) {
setcookie("RememberMeUN", "", time()+(60*60*24*30), "/", "", 0);
}
?>
<?php
if ((isset($_POST["LogIn_submit"])&&(isset($_POST["Log_In_group_Remember_my_information"])) && $_POST["Log_In_group_Remember_my_information"] != "")) {
setcookie("RememberMePWD", "".((isset($_POST["Log_In_group_Password"]))?$_POST["Log_In_group_Password"]:"") ."", time()+(60*60*24*30), "/", "", 0);
}
?>
<?php
if ((isset($_POST["LogIn_submit"])&&(isset($_POST["Log_In_group_Remember_my_information"])) && $_POST["Log_In_group_Remember_my_information"] != "")) {
setcookie("RememberMeUN", "".((isset($_POST["Log_In_group_Email_Address"]))?$_POST["Log_In_group_Email_Address"]:"") ."", time()+(60*60*24*30), "/", "", 0);
}
?>
<?php
if ((isset($_POST["LogIn_submit"])&&(!isset($_POST["Log_In_group_Log_me_in_automatically"])) && $_POST["LogIn_submit"] != "")) {
setcookie("AutoLoginPWD", "", time()+(60*60*24*30), "/", "", 0);
}
?>
<?php
if ((isset($_POST["LogIn_submit"])&&(!isset($_POST["Log_In_group_Log_me_in_automatically"])) && $_POST["LogIn_submit"] != "")) {
setcookie("AutoLoginUN", "", time()+(60*60*24*30), "/", "", 0);
}
?>
<?php
if ((isset($_POST["LogIn_submit"])&&(isset($_POST["Log_In_group_Log_me_in_automatically"])) && $_POST["Log_In_group_Log_me_in_automatically"] != "")) {
setcookie("AutoLoginPWD", "".((isset($_POST["Log_In_group_Password"]))?$_POST["Log_In_group_Password"]:"") ."", time()+(60*60*24*30), "/", "", 0);
}
?>
<?php
if ((isset($_POST["LogIn_submit"])&&(isset($_POST["Log_In_group_Log_me_in_automatically"])) && $_POST["Log_In_group_Log_me_in_automatically"] != "")) {
setcookie("AutoLoginUN", "".((isset($_POST["Log_In_group_Email_Address"]))?$_POST["Log_In_group_Email_Address"]:"") ."", time()+(60*60*24*30), "/", "", 0);
}
?>
<?php
if($_SERVER["REQUEST_METHOD"] == "POST"){
$WA_Auth_Parameter = array(
"connection" => $myisateam,
"database" => $database_myisateam,
"tableName" => "members",
"columns" => explode($WA_Auth_Separator,"email".$WA_Auth_Separator."password"),
"columnValues" => explode($WA_Auth_Separator,"".((isset($_POST["Log_In_group_Email_Address"]))?$_POST["Log_In_group_Email_Address"]:"") ."".$WA_Auth_Separator."".((isset($_POST["Log_In_group_Password"]))?$_POST["Log_In_group_Password"]:"") .""),
"columnTypes" => explode($WA_Auth_Separator,"text".$WA_Auth_Separator."text"),
"sessionColumns" => explode($WA_Auth_Separator,"member_id".$WA_Auth_Separator."access".$WA_Auth_Separator."firstname".$WA_Auth_Separator."lastname".$WA_Auth_Separator."email".$WA_Auth_Separator."group_id"),
"sessionNames" => explode($WA_Auth_Separator,"SecurityAssist_member_id".$WA_Auth_Separator."access".$WA_Auth_Separator."firstname".$WA_Auth_Separator."lastname".$WA_Auth_Separator."email".$WA_Auth_Separator."group_id"),
"successRedirect" => "redirect.php",
"failRedirect" => "login.php?failedLogin=1",
"gotoPreviousURL" => TRUE,
"keepQueryString" => TRUE
);
WA_AuthenticateUser($WA_Auth_Parameter);
}
?>
<?php
if((((isset($_SESSION["SecurityAssist_member_id"]) && $_SESSION["SecurityAssist_member_id"] != "")?"LoggedIn":"") == "")&&(((isset($_COOKIE["AutoLoginUN"]))?$_COOKIE["AutoLoginUN"]:"") != "")&&(((isset($_COOKIE["AutoLoginPWD"]))?$_COOKIE["AutoLoginPWD"]:"") != "")){
$WA_Auth_Parameter = array(
"connection" => $myisateam,
"database" => $database_myisateam,
"tableName" => "members",
"columns" => explode($WA_Auth_Separator,"email".$WA_Auth_Separator."password"),
"columnValues" => explode($WA_Auth_Separator,"".((isset($_COOKIE["AutoLoginUN"]))?$_COOKIE["AutoLoginUN"]:"") ."".$WA_Auth_Separator."".((isset($_COOKIE["AutoLoginPWD"]))?$_COOKIE["AutoLoginPWD"]:"") .""),
"columnTypes" => explode($WA_Auth_Separator,"text".$WA_Auth_Separator."text"),
"sessionColumns" => explode($WA_Auth_Separator,"member_id".$WA_Auth_Separator."access"),
"sessionNames" => explode($WA_Auth_Separator,"SecurityAssist_member_id".$WA_Auth_Separator."access"),
"successRedirect" => "coach-account.php",
"failRedirect" => "",
"gotoPreviousURL" => TRUE,
"keepQueryString" => TRUE
);
WA_AuthenticateUser($WA_Auth_Parameter);
}
?>
<?php
if (isset($_POST["LogIn_submit"])) {
$WAFV_Redirect = "".(htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)) ."?invalid=true";
$_SESSION['WAVT_login_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ((isset($_POST["Log_In_group_Email_Address"])?$_POST["Log_In_group_Email_Address"]:"") . "",true,1);
$WAFV_Errors .= WAValidateRQ((isset($_POST["Log_In_group_Password"])?$_POST["Log_In_group_Password"]:"") . "",true,2);
$WAFV_Errors .= WAValidateEL((isset($_POST["Log_In_group_Password"])?$_POST["Log_In_group_Password"]:"") . "",6,500,true,3);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"login");
}
}
?>
来自服务器的错误日志......
[15-Dec-2016 22:29:38 UTC] PHP Warning: session_write_close(): write failed: No space left on device (28) in /home3/fresnobo/public_html/bootcampadmin/includes/common/KT_functions.inc.php on line 461
[15-Dec-2016 22:29:38 UTC] PHP Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in /home3/fresnobo/public_html/bootcampadmin/includes/common/KT_functions.inc.php on line 461
[15-Dec-2016 22:29:38 UTC] PHP Warning: session_write_close(): write failed: No space left on device (28) in /home3/fresnobo/public_html/bootcampadmin/includes/common/KT_functions.inc.php on line 461
[15-Dec-2016 22:29:38 UTC] PHP Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in /home3/fresnobo/public_html/bootcampadmin/includes/common/KT_functions.inc.php on line 461
[15-Dec-2016 22:29:38 UTC] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0
[15-Dec-2016 22:29:38 UTC] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
[15-Dec-2016 23:05:51 UTC] PHP Warning: session_write_close(): write failed: No space left on device (28) in /home3/fresnobo/public_html/bootcampadmin/includes/common/KT_functions.inc.php on line 461
[15-Dec-2016 23:05:51 UTC] PHP Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in /home3/fresnobo/public_html/bootcampadmin/includes/common/KT_functions.inc.php on line 461
[15-Dec-2016 23:05:51 UTC] PHP Warning: session_write_close(): write failed: No space left on device (28) in /home3/fresnobo/public_html/bootcampadmin/includes/common/KT_functions.inc.php on line 461
[15-Dec-2016 23:05:51 UTC] PHP Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in /home3/fresnobo/public_html/bootcampadmin/includes/common/KT_functions.inc.php on line 461
[15-Dec-2016 23:05:51 UTC] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0
[15-Dec-2016 23:05:51 UTC] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
[15-Dec-2016 23:36:22 UTC] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0
[15-Dec-2016 23:36:22 UTC] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
[15-Dec-2016 23:48:24 UTC] PHP Warning: session_write_close(): write failed: No space left on device (28) in /home3/fresnobo/public_html/bootcampadmin/includes/common/KT_functions.inc.php on line 461
[15-Dec-2016 23:48:24 UTC] PHP Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in /home3/fresnobo/public_html/bootcampadmin/includes/common/KT_functions.inc.php on line 461
[15-Dec-2016 23:48:25 UTC] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0
[15-Dec-2016 23:48:25 UTC] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
[16-Dec-2016 00:32:33 UTC] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0
[16-Dec-2016 00:32:33 UTC] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
[16-Dec-2016 00:42:47 UTC] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0
[16-Dec-2016 00:42:47 UTC] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
[16-Dec-2016 00:42:54 UTC] PHP Warning: session_write_close(): write failed: No space left on device (28) in /home3/fresnobo/public_html/bootcampadmin/includes/common/KT_functions.inc.php on line 461
[16-Dec-2016 00:42:54 UTC] PHP Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in /home3/fresnobo/public_html/bootcampadmin/includes/common/KT_functions.inc.php on line 461
[16-Dec-2016 00:42:55 UTC] PHP Warning: session_write_close(): write failed: No space left on device (28) in /home3/fresnobo/public_html/bootcampadmin/includes/common/KT_functions.inc.php on line 461
[16-Dec-2016 00:42:55 UTC] PHP Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in /home3/fresnobo/public_html/bootcampadmin/includes/common/KT_functions.inc.php on line 461
[16-Dec-2016 00:42:55 UTC] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0
[16-Dec-2016 00:42:55 UTC] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
[16-Dec-2016 00:43:03 UTC] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0
[16-Dec-2016 00:43:03 UTC] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0