作者:似风似戏是梦而已 | 来源:互联网 | 2014-06-17 17:22
php下session的定义方法,注意了必须要用session_start(),2session_start();3$_SESSION[username]zhuzhao;4?2session_start();3echo$_SESSION[username];4?
php下session的定义方法,注意了必须要用session_start()
-
- session_start();
- $_SESSION['username']="zhuzhao";
- ?>
-
- session_start();
- echo $_SESSION['username'];
- ?>