#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    2
    Rep Power
    0
    I can not get cookies working on Personal Web Server4 from NT Option Pack and PHP3...

    page1:

    setcookie('user_id', ...);
    Header('Location age2')

    page2:

    if (Isset()) {
    ...
    }

    page2 shows that cookie os not set.

  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 1999
    Location
    Netherlands
    Posts
    77
    Rep Power
    16
    Hi,

    You use bothe setcookie() and header() in one page, which means that two headers should be sent, which isn't possible.
    Do not use any other header or IO function (like include()) when you want to set a cookie.

    Good luck, Peter
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    2
    Rep Power
    0
    I need to set a cookie and jump to another page..How else can I do this?

Similar Threads

  1. cant delete cookies random errors
    By toxical in forum PHP Development
    Replies: 2
    Last Post: November 26th, 2003, 06:16 AM
  2. Clearing all cookies php script - HowTo?
    By fordfasterr in forum PHP Development
    Replies: 8
    Last Post: October 24th, 2003, 10:40 AM
  3. Problems setting cookies with a path and domain
    By IBBoard in forum PHP Development
    Replies: 4
    Last Post: July 2nd, 2003, 04:03 PM
  4. AOL cookies?
    By cfthong in forum PHP Development
    Replies: 0
    Last Post: August 18th, 2000, 11:59 AM
  5. Cookies in PHP3
    By cciipp in forum PHP Development
    Replies: 9
    Last Post: July 13th, 2000, 03:45 AM

IMN logo majestic logo threadwatch logo seochat tools logo