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

PHP logout code (session logout)_PHP tutorial

WBOY
Release: 2016-07-21 15:18:48
Original
1167 people have browsed it

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"); ?...
Related labels:
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