Home >Backend Development >PHP Tutorial >PHP uses session_destroy() to delete Session data

PHP uses session_destroy() to delete Session data

WBOY
WBOYOriginal
2016-07-25 09:11:311001browse
  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. ?>
复制代码


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:mailNext article:mail