php session 预定义数组

2015-01-24信息快讯网

php下session的定义方法,注意了必须要用session_start()

<?php 
session_start(); 
$_SESSION['username']="zhuzhao"; 
?>


<?php 
session_start(); 
echo $_SESSION['username']; 
?>
©2014-2024 dbsqp.com