当前位置:Gxlcms > PHP教程 > PHP使用session_destroy()删除Session数据

PHP使用session_destroy()删除Session数据

时间:2021-07-01 10:21:17 帮助过:22人阅读

<无详细内容>
  1. session_start () ;
  2. session_register ( "A" ) ;
  3. session_register ( "B" ) ;
  4. session_register ( "C" ) ;
  5. $A = "AAA";
  6. $B = "BBB";
  7. $C = "CCC";
  8. $result = session_destroy () ;
  9. if ($result=1) {
  10. echo "The session is destroyed! " , "\n " ;
  11. } else {
  12. echo "The session could not be destroyed. " , " \n" ;
  13. }
  14. echo $pop;
  15. ?>

人气教程排行