Hi Guys,
Im getting the headers already sent error.
I've looked through the forum for ideas and removed all the blank lines in the scripts but im still getting the errors.
Here is the scripts that are giving me the errors.
The end of the first script re-directs to the second using the Location command.
// Register some session variables!
session_register('username');
session_register('first_name');
session_register('surname');
session_register('email');
session_register('userlevel');
mysql_query("UPDATE customers SET last_login=now() WHERE username='$username'");
header("Location: login_success.php");
This then displays this page
<?
session_start();
echo "Welcome". $HTTP_SESSION_VARS['first_name']." ".$HTTP_SESSION_VARS['surname'].", you have successfully logged in";
echo "<br /><a href=logout.php>Logout</a><br>
<a href=user_account_info.php>View / Update Account Info</a>";
?>
If you select the Update Accounts link it displays the page correctly but i get the Warning: Cannot send session cache limiter - headers already sent (output started.... Error
This is the top of the script that generates the error.
<?php require_once('Connections/smslist.php'); ?>
<?php
session_start(); // *** Restrict Access To Page: Grant or deny access to this page
$FF_authorizedUsers="";
$FF_authFailedURL="login.htm";
$FF_grantAccess=0;
if (isset($HTTP_SESSION_VARS["username"])) {
if (false || !(isset($HTTP_SESSION_VARS["MM_UserAuthorization"])) || $HTTP_SESSION_VARS["MM_UserAuthorization"]=="" || strpos($FF_authorizedUsers, $HTTP_SESSION_VARS["MM_UserAuthorization"])) {
$FF_grantAccess = 1;
Any ideas what is causing this???