Dit is me scripts van functions.php


<?php
session_start();
include ("config.php");

function CheckLogin()
{
if(!isset($_SESSION['user']) && !isset($_SESSION['pass'])) {
exit ("<META HTTP-EQUIV='Refresh' CONTENT='1'; URL=../index.php'>");
}
}



en ik kreeg deze foutmelding:

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/www/missreplay.freestarthost.com/forum.php:2) in /home/www/missreplay.freestarthost.com/functions.php on line 2

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/www/missreplay.freestarthost.com/forum.php:2) in /home/www/missreplay.freestarthost.com/functions.php on line 2
Je hebt ergens in je script output wanneer je de fuctie aan roept
misschien lege regels achter het "?>"
include() je dit script misschien?
die session_start heb je dan niet nodig als ie al geinclude is en die session_start al in dat bvestand staat

Reageren