View Single Post
  #1 (permalink)  
Old May 31st, 2007, 12:58
Bradster Bradster is offline
Junior Member
Join Date: May 2007
Location: United Kindom, London and the South East
Age: 17
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
session_start(); AHHH!

Im trying to make a login and admin panel for my site, and I get the following error on the login page;
Code: Select all
Warning:  session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/genosco/public_html/index.php:14) in /home/genosco/public_html/admin/index.php on line 2

Warning:  session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/genosco/public_html/index.php:14) in /home/genosco/public_html/admin/index.php on line 2
And thus I cant even login, this the code I have for that page.
Code: Select all
<?php
session_start();
include("database.php");
include("login.php");
?>

<?php
if($logged_in){
   include('admin_body.php');
}else{
   displayLogin();
}
?>
Reply With Quote