Warning: session_start() Cannot send session cache limiter

I have checked numerous solutions for this, with no avail:

Tried about everything, keep getting the same error, Please any help appreciated

Problem:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent

code:

[php]<?php
require_once(‘connect.php’);
connect();
session_start();
if($_SESSION[‘loggin’] == 1)
{

echo ’‘;
}
$refer = $_GET[‘refer’];
if($_GET[‘notify’] !=""){
$notification = $_GET[‘notify’];
$notification = base64_decode($notification);
$notification = ‘alert("’.$notification.’")’;
}else{
$notification ="";
}
$q = mysql_query(“SELECT * FROM settings”);
while($row = mysql_fetch_array($q))
{
$title = $row[‘title’];
$footer = $row[‘footer’];
}
?>

<?php echo $title;?>
<div id="templatemo_menu">
    <ul>
        <li><a href="index.php" class="current">Home</a></li>
    </ul>    	
    <div class="cleaner"></div>
</div> <!-- end of templatemo_menu -->

<div id="templatemo_middle">

	<div id="intro">
    	<h2><img src="icon.png "style="width:40px; height:40px;margin-bottom:-10px;"> Free Google +1 Exchange  </h2>
        <p>Google +1 Exchange acts as a exchange system.It allows you to get +1s for your page or site by +ing 1 others page.</p>
        <a class="learn_more" href="#register">Sign Up</a>
    </div>
<img src="banner.png" alt="" style="width:440px; height:220px; border: 4px solid #333;" />
</div>

<div id="tm_top"></div>
<div id="templatemo_main">

	<div class="col_w900 col_w900_last">
        <div class="col_w580 float_l">

        <div class="news_box">
			<img src="icon.png" style="width:100px; height:100px;border:0;"/>
            <h2>Google +1 Exchange</h2>
            <p class="date">Today</p>
            <p>Google +1 Exchange acts as a exchange system.It allows you to get +1s for your page or site by +ing 1 others page.</p>
            <div class="cleaner"></div>
        </div>
        </div>
        
        <div class="col_w280 float_r">
<div class="col_allw280 frontpage_box">
          <h2>Login</h2>
                       <div id="cp_contact_form">
          
                <form method="post" name="contact" action="login.php">
                        <label for="author">UserName:</label> <input name="username" type="text" class="input_field" id="author" maxlength="20" />
                      	<div class="cleaner_h10"></div>
                        
                        <label for="email">Password:</label> <input name="password" type="password" class="input_field" id="email" maxlength="20" />
                      	
        
                        <div class="cleaner_h10"></div>
                        <div class="cleaner_h10"></div>              
                    
                    	<input type="submit" class="submit_btn float_l" name="submit" id="submit" value="Login" />
                </form>

            </div>
        </div>
           <p style="text-align:center;font-weight:bold;"> ------------------------------------ </p>
           <div class="col_allw280 frontpage_box">
          <h2>Register</h2>
                       <div id="cp_contact_form">
          
                <form id="register" method="post" name="contact" action="register.php">

              <label for="author">UserName:</label>
                   <input name="username" type="text" class="input_field" id="author" maxlength="20" />
                      	<div class="cleaner_h10"></div>
                        
                        <label for="email">Password:</label> <input name="password" type="password" class="input_field" id="email" maxlength="20" />
                        <label for="author">First Name:</label> <input name="first_name" type="text" class="input_field" id="author" maxlength="20" />

Last Name:

                        <label for="email">Email:</label> <input name="email" type="text" class="input_field" id="email" />
                        <div class="cleaner_h10"></div>
                        <div class="cleaner_h10"></div>
                    
                    	<input type="submit" class="submit_btn float_l" name="submit" id="submit" value="Sign Up" />
                </form>

            </div>
        </div>
            
            <div class="cleaner h30"></div>
            
        </div>
        <div class="cleaner"></div>
	</div>
    
    <div class="cleaner"></div>
</div> <!-- end of main -->

<div id="tm_bottom"></div>

<div id="templatemo_footer">
	
   <?php echo $footer;?>
    
</div> <!-- end of footer -->
[/php]

[php]<?php
session_start();
require_once(‘connect.php’);
connect();
if($_SESSION[‘loggin’] == 1)
{[/php]

Try putting session_start() before require connect.php
Does "Cannot send session cache limiter - headers already sent " say which file sends the header?

First of all sorry about my english,

You can’t send anything to show at screen before session_start();
conect() must be write anything or not exist connect.php or … many options.
Make sure you have not written anything on the screen, or even enter or blanks before <?php

Try to put session_start(); at the begin of file.
[php]<?php
session_start();
require_once(‘connect.php’);
connect();

if($_SESSION[‘loggin’] == 1)
{

echo ’‘;
}
$refer = $_GET[‘refer’];
if($_GET[‘notify’] !=""){
$notification = $_GET[‘notify’];
$notification = base64_decode($notification);
$notification = ‘alert("’.$notification.’")’;
}else{
$notification ="";
}
$q = mysql_query(“SELECT * FROM settings”);
while($row = mysql_fetch_array($q))
{
$title = $row[‘title’];
$footer = $row[‘footer’];
}
?>

<?php echo $title;?>
<div id="templatemo_menu">
    <ul>
        <li><a href="index.php" class="current">Home</a></li>
    </ul>    




    <div class="cleaner"></div>
</div> <!-- end of templatemo_menu -->

<div id="templatemo_middle">

Free Google +1 Exchange

Google +1 Exchange acts as a exchange system.It allows you to get +1s for your page or site by +ing 1 others page.

Sign Up
        <div class="news_box">

            <h2>Google +1 Exchange</h2>
            <p class="date">Today</p>
            <p>Google +1 Exchange acts as a exchange system.It allows you to get +1s for your page or site by +ing 1 others page.</p>
            <div class="cleaner"></div>
        </div>
        </div>
        
        <div class="col_w280 float_r">
<div class="col_allw280 frontpage_box">
          <h2>Login</h2>
                       <div id="cp_contact_form">
          
                <form method="post" name="contact" action="login.php">
                        <label for="author">UserName:</label> <input name="username" type="text" class="input_field" id="author" maxlength="20" />
                        <label for="email">Password:</label> <input name="password" type="password" class="input_field" id="email" maxlength="20" />
                      




        
                        <div class="cleaner_h10"></div>
                        <div class="cleaner_h10"></div>              
            </div>
        </div>
           <p style="text-align:center;font-weight:bold;"> ------------------------------------ </p>
           <div class="col_allw280 frontpage_box">
          <h2>Register</h2>
                       <div id="cp_contact_form">
          
                <form id="register" method="post" name="contact" action="register.php">

              <label for="author">UserName:</label>
                   <input name="username" type="text" class="input_field" id="author" maxlength="20" />
                        <label for="email">Password:</label> <input name="password" type="password" class="input_field" id="email" maxlength="20" />
                        <label for="author">First Name:</label> <input name="first_name" type="text" class="input_field" id="author" maxlength="20" />

Last Name:

                        <label for="email">Email:</label> <input name="email" type="text" class="input_field" id="email" />
                        <div class="cleaner_h10"></div>
                        <div class="cleaner_h10"></div>
            </div>
        </div>
            
            <div class="cleaner h30"></div>
            
        </div>
        <div class="cleaner"></div>
    <div class="cleaner"></div>
</div> <!-- end of main -->

<div id="tm_bottom"></div>

<div id="templatemo_footer">





   <?php echo $footer;?>
    
</div> <!-- end of footer -->
[/php]

Sorry, I posted while lothop.

I do not want to correct lothop is absolutely right.

a greeting

:o

:-*

Sponsor our Newsletter | Privacy Policy | Terms of Service