session_start() problems

chewett

New Member
Messages
137
Reaction score
0
Points
0
does anyone have any knowledge of

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at XXX) in XXX on line X

i worked out what this is

i had a line before my <php tag

all i had to do was remove it
 
Last edited:

jptosso

New Member
Messages
200
Reaction score
0
Points
0
try removing Includes and requires, also clean buffers and use a break;
then apply session_start();
i also had this problem and that is the way to solve it, try to change the functions order for example:
include("config.php");
counter("index.php");
session_start();

to

session_start();
include("config.php");
counter("index.php");

:)
i wish its helpfull
 

xbfish

New Member
Messages
8
Reaction score
0
Points
0
Just to add, regardless of any case, session_start() must always be at the top of any PHP files/pages.

This is because every browser will check for session before the header of the web page. :biggrin:
 
Top