SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard Darren884's Avatar
    Join Date
    Aug 2003
    Location
    Southern California, United States
    Posts
    1,616
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Whats wrong with my cookie setting code?

    Here:
    PHP Code:
    <?php

    setcookie 
    ("member_support"md5("id") ."|" md5("password"), date("U")+1296000);

    ?>
    I am not getting it set, what could be wrong? Thanks.
    Have a good day.

  2. #2
    Tranceoholic lilleman's Avatar
    Join Date
    Feb 2004
    Location
    Írebro, Sweden
    Posts
    2,716
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    The syntax look fine. Perhaps you're trying to access it right after it was set? A cookie can't be accessed until the page is reloaded.
    ERIK RIKLUND :: Yes, I've been gone quite a while.


Bookmarks

Posting Permissions

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