note 70919 deleted from features.cookies by nlopess

From: Date: Sat, 04 Nov 2006 10:59:10 +0000
Subject: note 70919 deleted from features.cookies by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-119388@lists.php.net to get a copy of this message
Note Submitter: lamidesbetes at yahoo.fr ---- I met some difficulties with "header already sent" using setcookie: I verified space echo and other forbidden code before setcookie, but it was not the problem. I used: <? include("login.php"); Verif_Login($code); ?> login.php define : <? function Verif_Login ($code){ require_once("connect.php"); setcookie()... ?> setcookie worked when i replaced require_once by include: include("connect.php"); ..I hope it will help

« previous php.notes (#119388) next »