在本机上调试得很好的程序,上传到服务器上就有问题了.
用户可以登录,但不能注销,注销时出现错误:
Warning: session_destroy() [function.session-destroy]: Session object destruction failed in D:\wwwroot\jxsgjy\wwwroot\library\logout.php on line 3
锘?br /> Warning: Cannot modify header information - headers already sent by (output started at D:\wwwroot\jxsgjy\wwwroot\library\logout.php:3) in D:\wwwroot\jxsgjy\wwwroot\library\logout.php on line 5
我的注销程序代码:
<?php    
session_start();
session_destroy();
require_once('../mysql_connect.php'); //连接到数据库
header("Location: " . $config_basedir . "index.php");
?>