Is this cookie embedding method work?

Discussion in 'PHP' started by Sxperm, Nov 8, 2007.

  1. #1
    I'm testing about CJ cookies embedding method on website. Following these code

    
    <?
    	$name = "Cookiename";
    	$value = "http://www.absfde.com/click-54577-477848";
    	$time = 10;//expire time (day)
    
    	ob_start();
    	setcookie($name ,$value ,time()+($time*24*60*60),"/");
    	ob_clean();
    ?>
    
    Code (markup):
    Would this work? :)
     
    Sxperm, Nov 8, 2007 IP
  2. Demonic

    Demonic Active Member

    Messages:
    821
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    85
    #2
    Yes it works fine, don't be afraid to test things :)
     
    Demonic, Nov 8, 2007 IP
  3. Sxperm

    Sxperm Notable Member

    Messages:
    4,386
    Likes Received:
    142
    Best Answers:
    0
    Trophy Points:
    225
    #3
    Thanks but I don't know how to test it much really because I've to buy product through my affiliate link, which is against TOS. :D I'd like to know if it works really and can tracking all orders.
     
    Sxperm, Nov 8, 2007 IP