93)PHP,session代码练习
(1)开启session
1 Session_start();
(2)session值的设定:
1 <?php 2 session_start(); 3 $_SESSION['name']='xiaohua'; 4 $_SESSION['nianlaing']='19'; 5 /* 6 * 销毁session得某一个值 7 */ 8 unset($_SESSION['name']); 9 /* 10 * 重新改写session的值 11 */ 12 $_SESSION['name']='xiaoming'