HTML interesse |
|
Ik heb net een profielensysteem een beetje zitten te bewerken. Maar nu krijg ik 2 foutmeldingen:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at ...\test\config.php:12) in \test\functions.php on line 2
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at \test\config.php:12) in ..\test\functions.php on line 2
Mijn functions.php ziet er zo uit:
<?php
session_start();
include ("config.php");
function CheckLogin()
{
if(!isset($_SESSION['nickname']) && !isset($_SESSION['ww'])) {
exit ("<META HTTP-EQUIV='Refresh' CONTENT='1; URL=login.php'>");
}
}
?>
<?php include ("config.php"); function CheckLogin() { if(!isset($_SESSION['nickname']) && !isset($_SESSION['ww'])) { exit ("<META HTTP-EQUIV='Refresh' CONTENT='1; URL=login.php'>"); } } ?>
|