我试图修复我的登录脚本,在我的localhost它工作但上传到我的在线测试服务器,注销被破坏,我收到此错误:
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
Run Code Online (Sandbox Code Playgroud)
不太确定是什么导致它,因为它正在我的本地主机上工作,任何想法?
Sou*_*rav 11
session_start();
session_destroy(); /*or sesion_unset();*/
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12056 次 |
| 最近记录: |