|
Posted by upendrajpr on 06/21/07 11:48
On Jun 21, 4:43 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> upendra...@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.comwww.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.
> jstuck...@attglobal.net
> ==================
I remove all the white space from my file and IT works when First
I hit my page but when I come again to same page after some validation
then it gives me the error....
Warning: session_start() [function.session-start]: Cannot send session
cache limiter - headers already sent (output started at C:\Program
Files\Apache Software Foundation\Apache2.2\htdocs\rajput_new\login.php:
4) in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs
\rajput_new\loginform.html on line 1
Thank you in advance
situ
[Back to original message]
|