【PHP登录跳转,该怎么处理】教程文章相关的互联网学习教程文章

PHP登录跳转,该怎么处理

PHP登录跳转session_start();include("config.php");//连接数据库$username=$_POST['user'];$word=$_POST['password'];$userword=md5(trim($word));//MD5转换密码$id=$_POST['user_id'];if($id=="student"){ $result_psword=mysql_query("select S_PS from STUDENT where S_ID='$username'"); /*while ($rows=mysql_fetch_array($result_psword)){}*/ if(!$result_psword) { echo "用户不存在,请先注册"; echo ""; exit; } else i...

phpcas登录跳转有关问题

phpcas 登录跳转问题//导入cas require_once("CAS.php");phpCAS::client(CAS_VERSION_2_0,localhost,8443,cas,true); phpCAS::setNoCasServerValidation();phpCAS::forceAuthentication(); if(phpCAS::isAuthenticated()==true){echo phpCAS::getUser();}else{echo "abc"; } ?我现在在所有的php的所有的头里面加了这段代码。相当于是java里面的过滤器。? 现在问题出来了,我如果没有认证,访问php页面的时候会跳到cas登录页面,我现...