שלום,
אני מנסה לעשות logout, ונתקלתי בבעיה,
אני משתמש בסשן (SESSION) ואני פשוט לא מצליח למחוק אותם, הינה הקוד:
PHP קוד:
session_destroy();
header("Location: index.php");
השגיאה:
קוד:
Warning: session_destroy() [function.session-destroy]: Trying to destroy uninitialized session in /home/losnir/domains/nfs-il.net/public_html/1/login.php on line 5
Warning: Cannot modify header information - headers already sent by (output started at /home/losnir/domains/nfs-il.net/public_html/1/login.php:5) in /home/losnir/domains/nfs-il.net/public_html/1/login.php on line 6
יש לציין שאין שום פלט לפני זה.
תודה לעוזרים
