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

thinkphp member logout_PHP tutorial

WBOY
Release: 2016-07-13 17:53:43
Original
911 people have browsed it

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...
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