cookie / session problem

From: Date: Fri, 16 May 2003 01:05:34 +0000
Subject: cookie / session problem
Groups: php.db 
Request: Send a blank email to php-db+get-27795@lists.php.net to get a copy of this message
I am getting this odd error when trying to set a cookie...
Warning : Cannot modify header information - headers already sent by (output started at /home/www/cart/product1.php:14) in /home/www/cart/db.php on line 43
Line 43 of the file referenced is:
setcookie("cartId", session_id(), time() + ((3600 * 24) * 30));
Any suggestions as to what might be the problem? -- mark hurty | mark@hurty.com | 309.764.0915

« previous php.db (#27795) next »