Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Php cookie, header, Cannot display page error

  1. #11
    Join Date
    Mar 2011
    Posts
    2,145
    Thanks
    59
    Thanked 116 Times in 113 Posts
    Blog Entries
    4

    Default

    YYYYYYYYYYYYYYYYEEEEEEEEEEEEEEEEEEEESSSSSSSSSSSSSSS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    (I fixed it)

    I changed
    Code:
    setcookie("password", "", time() - 3600);
    to
    Code:
    setcookie("password", "", time() - 3600, '/');
    to make it work throughout the entire directory's and now it works fine?

    Thanks for all your help djr33!

  2. #12
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Oh, right. If you're doing that in a subdirectory, it will only work there and in contained directories.
    Same for subdomains if that's relevant for you. (And HTTPS.)
    Last edited by djr33; 06-08-2012 at 04:21 AM.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #13
    Join Date
    Mar 2011
    Posts
    2,145
    Thanks
    59
    Thanked 116 Times in 113 Posts
    Blog Entries
    4

    Default

    Thanks for all the help you've givin me!
    Keyboard1333

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
  •