Show if behavior Problem
I have a banner on my pages that is a file include for the nav (see code below). In the include file I added a connection to the users database and filtered by User_ID. Then added a show if Logged in to userdata behavior. Not logged in it didn't show, logged in it showed. It all worked great but then started throwing the message below on some of the pages, then got progressively worse and ended up on all pages.
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/hemgen1/public_html/spec_sheep.php:8) in /home/hemgen1/public_html/WA_SecurityAssist/Helper_PHP.php on line 5
Here are the first lines of my helper file from Security assist Helper_PHP.php file:
<?php require_once( "HelperGroupsRulesPHP.php" ); ?>
<?php require_once( "Mail_PHP.php" ); ?>
<?php
if (!isset($_SESSION)) {
session_start();
}
The session (!isset) should be true, right? So is it trying to start another session which is throwing the error?
Universal page code:
<body>
<div id="wrapper">
<div id="homelink"><a href="index.php"><img src="images/HemoGenixHomeLink.gif" width="338" height="94" /></a></div>
<div id="top_nav">
<?php include('links_topNav.php') ?><!--Show if behavior is in here-->
</div>
<div id="centernav_content">
<?php include('j_menu.php') ?>
</div>
How can I correct this?
URL:
www.hemogenix.com