正如它說我需要刪除?q =註銷。首先,我想這註銷後刪除頭部位置重定向?q =註銷
if ($_GET["q"] == "logout")
{
$user->user_logout();
header("location:".$_SERVER["SERVER_NAME"]);
}
我嘗試的第二件事情:
if ($_GET["q"] == "logout")
{ $user->user_logout();
header("location:include/redirect_home.php");
}
和redirect_home.php
header("location:".$_SERVER["SERVER_NAME"]);
在這兩種情況下,頁面重定向到www.mypage.com/? q =註銷 我需要在$ user-> user_logout()後面刪除?q =註銷。被處理
也許還有另一個重定向。退出;在標題後看到 – 2012-07-11 09:38:14
您是否嘗試過使用POST而不是GET快速輕鬆修復,如果您沒有要求GET – 2012-07-11 09:38:27
退出;殺死頁面(空白) 我需要它GET GET – munge83 2012-07-11 09:47:54