日期:2014-05-17 浏览次数:20488 次
<?php session_start(); session_unset(); session_destroy(); session_register("pass"); $password=111; $HTTP_SESSION_VARS["pass"]=$password; echo $HTTP_SESSION_VARS["pass"];?> <a href="session.php"> 请点击第二页面</a>
<?php session_start(); $i=$_SESSION['pass']; if(isset($i)) { echo "成功"; echo $i; } else { echo "失败"; } ?>