Posted by Jerry Stuckle on 09/16/05 23:03
Tamer Higazi wrote:
> Hi!
> I wrote a small script setting a cookie.... but nothing is being set.
> What could be the problem?! Did I make something wrong?! One script is
> used to ask for the cookie and the other one shows the displayed
> variable in a string only! But if I look at Firefox in the cookie cache
> if the variables are set... I didn't find anything. what could be the
> problem?!
>
> Apache 2.0.54 with PHP 5.1 RC1 on Gentoo Linux 2005.1
>
> For any help... Thanks in advance
>
> Tamer
>
http://www.php.net/manual/en/function.setcookie.php
"setcookie() defines a cookie to be sent along with the rest of the HTTP
headers. Like other headers, cookies must be sent before any output from
your script (this is a protocol restriction)."
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|