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

PHP uses session_destroy() to delete Session data

WBOY
Release: 2016-07-25 09:11:31
Original
997 people have browsed it
  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. ?>
复制代码


source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template