<u>复制代码</u> 代码如下: <br><?php <BR>//登陆页面设置的session,当session中存在name时 <br>//session_start(); <br>//$name = $_SESSION['name']; <br>//if (empty($name)){ <br>// header("Location: error.php"); <br>// exit(); <br>/