Here are the codes of the sidebar of my website.
<td width='250' valign='top' style="border: 0px; border-left: 1px solid #CCCCCC; padding: 0px; padding-left: 5px;">
<?
session_start();
if($_SESSION['s_logged_n'] == 'true'){
include 'process.php';
?>
<? echo ("Hello <b>". $_SESSION['s_username']."</b> !"); ?>
<div id="sideBar" class="side">
<ul>
<li><a href="upload.php">Upload Files</a></li>
<li><a href="usercp.php">My Album</a></li>
<li><a href="usercp.php?idx=edit">Edit Profile</a></li>
<li><a href="logout.php">Log out</a></li>
</ul>
</div>
<? } else { ?>
<div id="main">
<h2>Login</h2>
<p>Enter your username and password below and hit submit</p>
<form method='post' action='login.php'>
<p>Username:<br>
<input name='username' type='text' Cid='username'>
<p>Password:<br>
<input name='password' type='password' id='password'>
</p>
<p>
<input name='login' type='submit' id='login' value='Submit'>
</p>
</form>
<p>Didn't get your validation email? <a href='resend.php'>Click here</a> to resend the validation email.</p>
<p>Need an account? <a href='register.php'>Click here</a> to register, it's completely free! </p>
</div>
<? }; ?>
</div>
</td>
It means that if the user is not logged in, it will show a login box. once the user logs in, it will show a navigation bar.
The system is working fine but im getting this error on top:
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\www\index.php:50) in C:\www\index.php on line 62
I want this error message to go away. Please help
Thanks in advance,
Azad