You are here: Re: Problems setting cookie « PHP Programming Language « IT news, forums, messages
Re: Problems setting cookie

Posted by Tamer Higazi on 09/17/05 02:08

Neither that!
even if I change the form method post and the whole script to "GET"
instead of "POST", I still receive no cookie!


Jerry Stuckle wrote:
> 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)."
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация