session_start() problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ben

    session_start() problem

    Hi, every time. This is a familiar question here, but the answers I
    found in this and other groups did not help. I get the :

    Warning: Cannot send session cache limiter - headers already sent
    (...)

    error, even though my session_start arguments are the first arguments
    on the page after <html>. ANyone know how to fix this ?

    Thank you


    Ben
  • Tom Thackrey

    #2
    Re: session_start() problem


    On 1-Oct-2003, microben@hotmai l.com (Ben) wrote:
    [color=blue]
    > Hi, every time. This is a familiar question here, but the answers I
    > found in this and other groups did not help. I get the :
    >
    > Warning: Cannot send session cache limiter - headers already sent
    > (...)
    >
    > error, even though my session_start arguments are the first arguments
    > on the page after <html>. ANyone know how to fix this ?[/color]

    The answer is always the same...

    YOU MUST NOT HAVE ANY OUTPUT TO THE BROWSER BEFORE CALLING session_start() .

    This includes white space, <html>, your name, and the string 'George is
    dead'.

    --
    Tom Thackrey

    Comment

    • David Robley

      #3
      Re: session_start() problem

      In article <3b62f09e.03100 11718.2607704a@ posting.google. com>,
      microben@hotmai l.com says...[color=blue]
      > Hi, every time. This is a familiar question here, but the answers I
      > found in this and other groups did not help. I get the :
      >
      > Warning: Cannot send session cache limiter - headers already sent
      > (...)
      >
      > error, even though my session_start arguments are the first arguments
      > on the page after <html>. ANyone know how to fix this ?
      >
      > Thank you
      >
      >
      > Ben[/color]

      Um, <HTML> is part of the headers. Output _NOTHING_ to the browser before
      sending session_start, not even whitespace .

      --
      Quod subigo farinam

      $email =~ s/oz$/au/o;
      A: Because it messes up the order in which people normally read text.
      Q: Why is top-posting such a bad thing?
      A: Top-posting.
      Q: What is the most annoying thing on usenet?

      Comment

      • Matthias Esken

        #4
        Re: session_start() problem

        David Robley <robleyd[spam]@ozemail.com.au > schrieb:
        [color=blue]
        > Um, <HTML> is part of the headers.[/color]

        Ah, no. But the webserver will send the headers when you start your
        output with "<HTML>" or any other characters.

        Regards,
        Matthias

        Comment

        Working...