我试着去解决我的登录脚本,在我的本地它的工作原理,但上传到我的在线测试服务器,注销坏了,我得到这个错误:警告:session_destroy()?
Warning: session_destroy() [function.session-destroy]: Trying to destroy uninitialized session in htdocs/logout.php on line 17
Warning: Cannot modify header information - headers already sent by (output started at htdocs/logout.php:17) in htdocs/logout.php on line 18
Warning: Cannot modify header information - headers already sent by (output started at htdocs/logout.php:17) in www/htdocs/logout.php on line 34
不太清楚这可能是造成它,因为它在我的本地主机上工作,有什么想法?
你可以显示logout.php的代码吗? – 2011-04-22 06:32:00
session_destroy之前有没有输出? 另外,什么是localhost中的PHP报告级别。如果它被设置为忽略警告,那么它只是不显示这些消息。 – 2011-04-22 06:33:13
得到它们家伙谢谢。 – aph107 2011-04-22 06:39:22