Results 1 to 2 of 2

Thread: Arg, WHY IT NO DELETE COOKIE!? [resolved]

Threaded View

  1. #1

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935

    Arg, WHY IT NO DELETE COOKIE!? [resolved]

    PHP Code:
    <?
    if ($delete)
    {
        setcookie($name, "", time() - 3600); // Setting to the past deletes
    }
    else
    {
        setcookie($name, "");
    }
    header("Location: " . $returnto);
    exit;
    ?>
    The file is called setcookie.php.

    The user clicks a link with the URL setcookie.php?name=skipflashintro&delete=true&returnto=index2.php . But the cookie stays there. The cookie was made using setcookie.php?name=skipflashintro&delete=false&returnto=index2.php . So why doesn't it get deleted!?
    Last edited by filburt1; Feb 20th, 2002 at 10:19 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width