php - Warning:session_start():Cannot send session cache limiter-headers already sent -


this question has answer here:

this working fine xammp on local computer started throwing error when uploaded it...

warning: session_start(): cannot send session cache limiter - headers sent (output started @ /home/../admin/header.php:39) in /home/../admin/session.php on line 3 

here section of code

<?php include('header.php'); ?> <?php include('session.php'); ?> <body> <?php include('navbar.php') ?> <div class="container-fluid"> <div class="row-fluid"> <?php include('dashboard_slidebar.php'); ?>      <div class="span9" id="content"> <div class="row-fluid"> <?php $query= mysqli_query($globals["___mysqli_ston"], "select * tbl1 id = '$session_id'")or die(mysqli_error($globals["___mysqli_ston"])); $row = mysqli_fetch_array($query);           ?> 

any appreciated

remove useless open/close tags

<?php  include('header.php');  include('session.php');  ?> 

because part after ?> , before next <?php has/can have line-break or tabs generates output.

and better move include('session.php'); above other include @dimi sayed.


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -