php android cookie
===

I have an android app that checks a php url that I have - however, I can't seem to set/pull the cokies onto/from the device. This works great on my desktop but not the phone itself, please help:

    <?php 
    
    if(!$_COOKIE['test']) {
    $newid=rand(1000,9999999);
    echo base64_encode("$newid"); 
    mysql_query("INSERT INTO `users` SET `id`='".$newid."', `channel`='0', `activation_date`=now(), `last_view`=now()");
    setcookie('test', $newid, mktime (0, 0, 0, 12, 31, 3015)); 
    } else {
    
    echo base64_encode($_COOKIE['test']); 
    
    }
    
    ?>