[php] Cookies

Discussion in 'Scripts, 3rd Party Apps, and Programming' started by taekwondokid42, Apr 3, 2008.

  1. taekwondokid42

    taekwondokid42 New Member

    Messages:
    268
    Likes Received:
    0
    Trophy Points:
    0
    I need to make a cookie that expires ~5 seconds after it was created.

    Does anybody know what I should set the time to?
     
  2. konekt

    konekt New Member

    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    0
    Expiration time = time() + 5
     
  3. taekwondokid42

    taekwondokid42 New Member

    Messages:
    268
    Likes Received:
    0
    Trophy Points:
    0
    setcookie('asdf', 'asdf', time()+5);


    Is that what the cookie should look like?



    edit: Everything worked, nvm. Thank you.
     
    Last edited: Apr 3, 2008

Share This Page