You are here: Re: session IDs and the like « PHP Programming Language « IT news, forums, messages
Re: session IDs and the like

Posted by Berimor on 11/02/41 11:31

On Mon, 07 Nov 2005 14:13:37 +0200, myname <none@invalid> wrote:

> Berimor wrote:
>
>> its Manual!!!
>> the PHP Manual says
>> " ... Note: If you are using cookie-based sessions, you must call
>> session_start() before anything is output to
>> the browser.
>> "
>>
>
> I was referring to the part where you said:
> "You can set cookie at any place of script"
>
> That is only true, as long there has not been sent anything to the
> client. Or if using output buffering

sure - i always use buffering.

Note: As of PHP 4, you can use output buffering to send output prior to
the call of this function, with the overhead of all of your output to the
browser being buffered in the server until you send it. You can do this by
calling ob_start() and ob_end_flush() in your script, or setting the
output_buffering configuration directive on in your php.ini or server
configuration files.

--
---
Exact Meta Search | Major Search Engine
http://exactsearcher.com

 

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

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