<?php
session_start(); //session开启
$_SESSION['username'] = "hello"; // 取出session中保存的值
echo $_SESSION["username"]; // 经行输出
unset($_SESSION['username'] ); //删除session中的值
session_destroy(); //彻底终结session
?>
<?php
session_start(); //session开启
$_SESSION['username'] = "hello"; // 取出session中保存的值
echo $_SESSION["username"]; // 经行输出
unset($_SESSION['username'] ); //删除session中的值
session_destroy(); //彻底终结session
?>