我試着去解決我的登錄腳本,在我的本地它的工作原理,但上傳到我的在線測試服務器,註銷壞了,我得到這個錯誤:警告: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