如何在登录后在logout.php页面中设置logout.php位置(使用signin.php),检查并成功地将登录重定向到joomla.php,在那里我给出了注销链接(使用href),现在我想单击注销并转到‘signin’。php &我得到了http_referer是joomla.php,所以hw可以设置logout.php
发布于 2013-02-04 08:54:29
HTTP_REFERER可以被欺骗,所以您不应该使用它。
看看您的代码,我认为您正在努力实现。
$Message = $_SESSION['MESSAGE'];//set the message Registration SuccessFully if registration else set it as Change Password SuccessFully or accordingly
if (isset($Message) and userhasidentity)
{
echo $Message;
}else
{
header('location:logout.php');
}https://stackoverflow.com/questions/14682704
复制相似问题