Home  >  Article  >  Backend Development  >  Warning: session_destroy() : Trying to destroy uninitialized_PHP教程

Warning: session_destroy() : Trying to destroy uninitialized_PHP教程

WBOY
WBOYOriginal
2016-07-21 15:28:041038browse

After verification, the session_start() function must be called first before using the session_destroy() function.
That is, the following code is required:

Copy code The code is as follows:

session_start( );
session_destroy();
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/323683.htmlTechArticleAfter verification, the session_start() function must be called before using the session_destroy() function. That is to say, the following code is required: Copy the code The code is as follows: ? session_start(); session_destro...
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