当前位置:Gxlcms >
PHP教程 >
PHP使用session_destroy()删除Session数据
PHP使用session_destroy()删除Session数据
时间:2021-07-01 10:21:17
帮助过:22人阅读
<无详细内容>
- session_start () ;
- session_register ( "A" ) ;
- session_register ( "B" ) ;
- session_register ( "C" ) ;
-
- $A = "AAA";
- $B = "BBB";
- $C = "CCC";
- $result = session_destroy () ;
- if ($result=1) {
- echo "The session is destroyed! " , "\n " ;
- } else {
- echo "The session could not be destroyed. " , " \n" ;
- }
-
- echo $pop;
- ?>
|