Home >Backend Development >PHP Tutorial >thinkphp member logout_PHP tutorial

thinkphp member logout_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-13 17:53:43920browse

Foreground display
|  Exit   


Backstage

Function destr(){
header('Content-type:text/html;charset=utf-8');
 
           $_SESSION['user_name']=' ';
          $_SESSION['user_id']=' ';
echo '<script>alert("Exit successfully");window.location.href="'.__URL__.'/own homepage name"</script>';
 
 
}


By nycqwert

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/478019.htmlTechArticleForeground display a href=__URL__/destr|nbsp;nbsp;Exitnbsp;nbsp;nbsp;/a Background function destr(){ header(Content-type:text/html;charset=utf-8); $_SESSION[user_name]= ; $_SESSION[user_id...
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