Reply to Re: can I still send cookies after I've called session_start()

Your name:

Reply:


Posted by Jerry Stuckle on 08/06/05 05:42

lkrubner@geocities.com wrote:
>>On Thu, 21 Jul 2005 11:43:55 -0700, lkrubner wrote:
>>
>>>No, I meant, I was setting a cookie, then calling session_start(), and
>>>I was getting an error. Can I call session_start() and then set a
>>>cookie? I want to set a permanent cookie that will last one million
>>>seconds. I also want sessions.
>>
>>AND WHAT IS THE ERROR????
>
>
> You can see the problem here:
>
> http://www.publicdomainsoftware.org/
>

<br />
<b>Warning</b>: session_start(): Cannot send session cookie - headers already
sent in

You're sending <br /> before the session_start call.

You can't send ANYTHING (including a blank line) before the session_start() call.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original 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

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