Posted by Koncept on 01/12/07 07:20
In article <12qdd8p56ccv3b8@corp.supernews.com>, Hendri Kurniawan
<ask-me@email.com> wrote:
>
> Simply add exit() after your header statement to:
>
> <?php
> session_start();
> if ($_GET["mode"] == "logout") {
> header("Location: index.php");
> exit();
> }
> ?>
>
> Hendri Kurniawan
I agree with Hendri. This is "exit" what is missing from your code.
Make sure to always place exit() after redirection or use buffers.
--
Koncept <<
"The snake that cannot shed its skin perishes. So do the spirits who are
prevented from changing their opinions; they cease to be a spirit." -Nietzsche
[Back to original message]
|