header Location NO php.ini

Asked

Viewed 224 times

0

A while ago I set up a VPS with Cpanel and I had this same problem, but I remember where it was changed but I don’t remember the line php.ini

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

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

But no redirect or error appears on LOG.

Someone can give me a light, I’m sure it was in the php.ini, but it’s been about two years, and now I need it again.

1 answer

0

It’s amazing, I spent all morning searching and it was only posting here that I found the solution.

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.