Click to See Complete Forum and Search --> : php help


marshy28
04-06-2003, 06:34 PM
I have a session code but keep getting the error:

Warning: Cannot send session cache limiter - headers already sent (output started at /files/home1/douza/barrys/index.php:6) in /files/home1/douza/barrys/index.php on line 47

Whats it mean???????


code:
<?
session_start();
if ($HTTP_SESSION_VARS['first_name']) {
echo "<strong><font color=red>Welcome ". $HTTP_SESSION_VARS['first_name'] ." ". $HTTP_SESSION_VARS['last_name'] ."!</font></strong>";
}
else {
echo "<strong><font color=red>Hello Guest</font></strong>";
}
?>

pyro
04-06-2003, 07:05 PM
It means that somewhere before you are using the sessions, you are sending text to the browser. You will need to place you sessions code before any code that the browser reads.