<div class="codetitle"> <span><a style="CURSOR: pointer" data="50034" class="copybut" id="copybut50034" onclick="doCopy('code50034')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code50034"> <br><?php <BR>session_start(); <br>$_SESSION['username']="zhuzhao"; <br>?><br> </div> <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="41748" class="copybut" id="copybut41748" onclick="doCopy('code41748')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code41748"> <br><?php <BR>session_start(); <br>unset($_SESSION['username']); <br>if(isset($_SESSION['username'])) <br>echo "username已经存在"; <br>else <br>echo "username不存在"; <br>?><br> </div>