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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.