<?php
session_start(); $_SESSION["view"]=1;?><html><body><?php if(isset($_SESSION["view"])) { $_SESSION["view"]=$_SESSION["view"]+1; echo $_SESSION["view"]."<br>"; } else { echo $_SESSION["view"]."<br>"; } unset($_SESSION["view"]);//删除session/* if(session_destroy())
{ echo $_SESSION["view"]; } //将session重置,失去所有session的数据 */ ?></body></html>