|
Posted by Jerry Stuckle on 06/21/07 11:43
upendrajpr@gmail.com wrote:
> On Jun 21, 3:00 pm, Mattia Gentilini
> <Mattia.Gentilini_REMOVE_@_REMOVE_CNAF.INFN.IT> wrote:
>> upendra...@gmail.com ha scritto:> "Warning: session_start() [function.session-start]: Cannot send
>>> session cache limiter - headers already sent ...."
>>> I don't know how can I handle with this error.
>> I experienced the same warning when I use the header() function after
>> output-ing some text e.g.
>>
>> echo("<html>");
>> header("Content-Type: text/html");
>>
>> Try to check if you have the same situation.
>>
>> --
>> |\/|55: Mattia Gentilini e 55 GMG
>> |/_| ETICS project at CNAF, INFN, Bologna, Italy
>> |\/|www.getfirefox.com www.getthunderbird.com
>> * Using Mac OS X 10.4.10 powered by Cerebros (Core 2 Duo) *
>
>
>
> Thank you very much for giving prompt reply .. I tried as you write
> but It cann't work and I remove my header.inc and use
> <? session_start(); ?> top of my html page but eroor is still
>
> "Warning: session_start() [function.session-start]: Cannot send
> session cookie - headers already sent by (output started at C:\Program
> Files\Apache Software Foundation\Apache2.2\htdocs\rajput_new
> \loginform.html:2) in "
>
>
> situ
>
From the manual at
<http://us2.php.net/manual/en/function.session-start.php>
"If you are using cookie-based sessions, you must call session_start()
before anything is outputted to the browser."
You can output absolutely nothing before the call to session_start - no
DOCTYPE, no tags, not even any white space.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|