session_start() problem

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-02-2003
Ben
 
Posts: n/a
Default 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
Reply With Quote
  #2 (permalink)  
Old 10-02-2003
Tom Thackrey
 
Posts: n/a
Default Re: session_start() problem


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
Reply With Quote
  #3 (permalink)  
Old 10-02-2003
David Robley
 
Posts: n/a
Default Re: session_start() problem

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?
Reply With Quote
  #4 (permalink)  
Old 10-02-2003
Matthias Esken
 
Posts: n/a
Default Re: session_start() problem

David Robley <robleyd[spam]@ozemail.com.au> schrieb:

> Um, <HTML> is part of the headers.


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

Regards,
Matthias
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:24 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0