Jump to content

ERROS nas Session


Brunod93
 Share

Go to solution Solved by HappyHippyHippo,

Recommended Posts

Bom dia

será que alguém sabe corrigir estes erros

Citação
Warning: session_start() function.session-start: Cannot send session cookie - headers already sent by (output started at /****/****/****/****/****/****/****.class.php:550) in /****/****/****/****/****/****/****/verificarLogin.php on line 2

Warning: session_start() function.session-start: Cannot send session cache limiter - headers already sent (output started at /****/****/****/****/****/****/****.class.php:550) in /****/****/****/****/****/****/****/verificarLogin.php on line 2

<?php
session_start();
if (empty($_SESSION['UserID'])) {
header('Location: login.php');
die();
}
?>
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. 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.