Hello.
I am writing a handler for clicking on the link "Exit"
<? unset($_SESSION[name]); session_destroy(); header('Location: index.php'); ?>
Swears
Warning: session_destroy() [function.session-destroy]: Trying to destroy uninitialized session in Z:\home\registr\www\test\exit.php on line 3
Warning: Cannot modify header information - headers already sent by (output started at Z:\home\registr\www\test\exit.php:1) in Z:\home\registr\www\test\exit.php on line 4
Why is that?