Please help how to fix header.php

02/03/2019 08:29 rendel12#1
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\templates\header.php:51) in C:\xampp\htdocs\templates\header.php on line 52
02/03/2019 08:58 Old-School#2
Quote:
Originally Posted by rendel12 View Post
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\templates\header.php:51) in C:\xampp\htdocs\templates\header.php on line 52
Try this
PHP Code:
if (session_id() == ""){
    
session_start();

02/03/2019 09:24 rendel12#3
same error
02/03/2019 10:04 Munat#4
try file encoding without BOM
02/03/2019 10:16 rendel12#5
Quote:
Originally Posted by Munat View Post
try file encoding without BOM
do you have skype sir
02/03/2019 20:04 [MXD]Takeshi#6
Quote:
Originally Posted by rendel12 View Post
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\templates\header.php:51) in C:\xampp\htdocs\templates\header.php on line 52
1. If you have saved your file in UTF-8 format, be sure to check if it is UTF-8 without BOM.


2. Use session_start() directly after your opening tag, before any other information is outputted/sent to the browser.

3. header('Cache-control: private'); add this code like this:
Code:
<?php
session_start();
header('Cache-control: private');
without the code, and other information, maybe something of this can help u