PaulRyan Posted August 14, 2011 Share Posted August 14, 2011 I've looked at this a bazillion times and cannot for the life of me see anything wrong with it. It's really starting to annoy me... Error: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\*\index.php:1) *Pathname Hidden index.php - top <?PHP session_start(); include('includes/config.php'); if(isSet($_SESSION['is_logged'])) { $loggedUser = mysql_query("SELECT `firstname`,`lastname`,`flag`,`account_type`,`id` FROM `accounts` WHERE `id` = {$_SESSION['is_logged']}"); $user = mysql_fetch_assoc($loggedUser); } if(!isSet($_SESSION['is_logged']) && isSet($_GET['ref'])) { $_SESSION['referrer'] = intval($_GET['ref']); } ?> Link to comment https://forums.phpfreaks.com/topic/244760-cannot-send-session-cache-limiter/ Share on other sites More sharing options...
PFMaBiSmAd Posted August 14, 2011 Share Posted August 14, 2011 For output on line one of a file (assuming you have removed any characters in the file that are before the <?php tag), see the last reply in this sticky post - http://www.phpfreaks.com/forums/index.php?topic=37442.0 Link to comment https://forums.phpfreaks.com/topic/244760-cannot-send-session-cache-limiter/#findComment-1257162 Share on other sites More sharing options...
PaulRyan Posted August 14, 2011 Author Share Posted August 14, 2011 Thanks, I would have never of knew that otherwise. Guess you learn something new everyday... Link to comment https://forums.phpfreaks.com/topic/244760-cannot-send-session-cache-limiter/#findComment-1257174 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.