Problems Putting cookie after nusoap execution.

gesf

Active member
Try to replace that setcookie line with this javascript code (like it is !):
Code:
?><script>SetCookie(<?php echo $SAPIone; ?>, <?php echo $util; ?>, today.getTime()+36000);</script><?php
 
Next time, please post what error message you're getting. From your code, it looks like you're almost certainly getting the "Headers already sent" error. That's because you're sending output to the browser (echo) before you set the cookie, which is a no-no (this is covered thoroughly in the documentation, btw).
 
Back
Top