Web Analytics Made Easy -
StatCounter cookies aren't working - CodingForum

Announcement

Collapse
No announcement yet.

cookies aren't working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • cookies aren't working

    Hello,

    Im trying to set a simple cookie for my website, however it doesnt seem to be working, any ideas??
    Im using IE 6 and have cookies enabled in the broswer, i can also find the cookie on my system.

    My code:


    PHP Code:
    COOKIES.PHP

    <?php
    $value 
    "my cookie value";

    // send a cookie that expires in 24 hours
    setcookie("TestCookie",$valuetime()+3600*24);

    ?>

    COOKIESRET.PHP

    <?php


    // Print individual cookies
    echo $_COOKIE["TestCookie"];

    ?>

  • #2
    welcome here!

    your code should work --> it's straight out of the manual...
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

    Comment

    Working...
    X