<?php session_start(); //删除session $_SESSION=array(); //删除客户端cookie中存储的sessionID值 if(isset($_COOKIE[session_name()])) { setcookie(session_name(),'',0,'/'); } session_destroy(); ?>