Home >Backend Development >PHP Tutorial >PHP logout code (session logout)_PHP tutorial

PHP logout code (session logout)_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-21 15:18:481196browse

Copy the code The code is as follows:

Logout
session_start();
session_destroy();
header("location:index.php");
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/325424.htmlTechArticleCopy the code as follows: a href="logout.php" style="color:#F09;"Logout/ a ?php session_start(); session_destroy(); header("location:index.php"); ?...
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