Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2004
    Posts
    7

    Unanswered: Setting two cookies(newbie)

    I try to set two cookies
    setcookie('id_hash', $id_hash, (time()+3*60) , '/', '', 0);
    setcookie('user_name', $user_name, (time()+3*60) , '/', '', 0);

    but the only cookie being set is the one in the first command.
    If I change the order the other one is set.
    Can somebody help me? I am a newbie it must be very easy

  2. #2
    Join Date
    Oct 2004
    Posts
    7

    Setting cookies bug

    Quote Originally Posted by ok_computer
    I try to set two cookies
    setcookie('id_hash', $id_hash, (time()+3*60) , '/', '', 0);
    setcookie('user_name', $user_name, (time()+3*60) , '/', '', 0);

    but the only cookie being set is the one in the first command.
    If I change the order the other one is set.
    Can somebody help me? I am a newbie it must be very easy
    Answe: It is a bug of 4.2.2 version of PHP.

Posting Permissions

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