Jump to content

Session VRS php.ini


rockxl1

Recommended Posts

Hi again ppl!

Every time i put php.ini file in my server with (max_file_size = 1000M) inside, do this error:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /hsphere/local/home/rockxl1/demo1.site-facil.net/admin.php:2)

 

Session Cache conflit with php.in-> max_file_size...

:S

 

Any help?

thanks

Rafael Rocha Portugal

Link to comment
https://forums.phpfreaks.com/topic/151461-session-vrs-phpini/
Share on other sites

It's likely that your php.ini with the max_file_size setting is changing another setting that was masking the header error.

 

Line 2 of admin.php is sending output to the browser that is preventing headers from working. What do lines 1 - 2 of admin.php contain?

Link to comment
https://forums.phpfreaks.com/topic/151461-session-vrs-phpini/#findComment-795563
Share on other sites

Error is:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /hsphere/local/home/rockxl1/demo1.site-facil.net/admin.php:2) in /hsphere/local/home/rockxl1/demo1.site-facil.net/admin.php on line 24

 

code is:

<?php

//GESTAO
require '../library/Gestao/config.inc.php';
require '../library/Gestao/Cliente_Servicos.Class.php';
require '../library/Gestao/Datas.php';

//site facil
require 'config.php';

require '../library/SiteFacil/conteudo.class.php';
require '../library/SiteFacil/config.class.php';
require '../library/SiteFacil/template.class.php';
require '../library/SiteFacil/menu.class.php';

require '../library/SiteFacil/includes/configurar.php';
require '../library/SiteFacil/includes/varios.php';
require '../library/SiteFacil/includes/paginas.php';

//outros
require '../library/Varios/Smarty-2.6.22/libs/Smarty.class.php';

session_start();
include VerificarLingua();

ini_set("display_errors", "1");

$Classe_ClientesServicos = new Cliente_servicos();
$Classe_ClientesServicos->CarregarDadoscliente_servicos(ID_CLIENTE_SERVICOS);

$Classe_config = new config(ID_CLIENTE_SERVICOS);
$Classe_Data = new Data();

if($Classe_ClientesServicos->getEstado() == 2 || $Classe_ClientesServicos->getEstado() == 3){
	include 'error.php';	
	exit();	
}

 

Link to comment
https://forums.phpfreaks.com/topic/151461-session-vrs-phpini/#findComment-795790
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.