header Location NO php.ini

0

At a time ago I set up a VPS with Cpanel and I had this same problem, however I remember where it was changed but I can not remember the line of php.ini

The problem is that I have a page that the user enters with a login and a password, in this page if $_SESSION is not in the parameters, it shows this line

session_destroy();
header("Location: logar.php"); exit;

But it does not redirect or show any error in LOG .

Someone can give me a light, I'm sure it was in php.ini , but this is already a couple of years, and now I'm needing it again.

    
asked by anonymous 09.04.2018 / 19:15

1 answer

0

It's amazing, I've been searching all morning and I've just found the solution here.

It was only necessary to change the php.ini . Change the output_buffering function to ON

    
09.04.2018 / 19:31