【发布时间】:2021-11-05 06:58:16
【问题描述】:
个 cPanel 个 site1.com们使 cPanel 建们建 cPanel site2.com没 site1.com
已缩 EditPage.php 中第 18
header("Location: Login.php?Page=$PageToEdit");
以site1.com cPanel 中PHP7.4 PHP-FPMsite2.comPHP7.4没 PHP-FPM cPanel 中 为 为没以请 谢谢
SERVER:
cPanel Version 98.0 (build 6) -
Apache Version 2.4.48 -
PHP Version 7.4.22 -
MySQL Version 10.3.31-MariaDB - Architecture x86_64 -
Operating System linux -
Kernel Version 3.10.0-1062.1.1.el7.x86_64
失败 PHP
// (A) START SESSION
session_start();
// (B) LOGOUT REQUEST
if (isset($_POST['logout'])) { unset($_SESSION['user']); }
// (C) REDIRECT TO LOGIN PAGE IF NOT LOGGED IN
if (!isset($_SESSION['user'])) {
header("Location: Login.php?Page=$PageToEdit");
die();
}
讨论
-
究起 - 你误
-
没误页个
线 就样 -
"no error is throwed just get white page" - 就为你件并确为 置正确误级记
-
空 //header("Location: Login.php?Page=$PageToEdit"); //死;以Login.php中以Hello巩 误
-
该 cpanel 设置代中你 误太 500 误中没任 迹