This is a discussion on session_start() problem within the PHP Language forums, part of the PHP Programming Forums category; Hi, every time. This is a familiar question here, but the answers I found in this and other groups did ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
On 1-Oct-2003, microben@hotmail.com (Ben) wrote: > 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 ? 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 www.creative-light.com |
|
|||
|
In article <3b62f09e.0310011718.2607704a@posting.google.com >,
microben@hotmail.com says... > 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 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? |