<?php
if (!isset($_COOKIE['user']))
{
header('Location: login.php');
die;
}
?>
When I tested it on my PC (running WampServer 5), it worked out.
But now hosted on Stoli, it says:
Warning: Cannot modify header information - headers already sent by (output started at /home/scorch94/public_html/gsm/index.php:2) in /home/scorch94/public_html/gsm/index.php on line 5
Any help?
Edit:
Sorry for bumping, but I really need an answer
if (!isset($_COOKIE['user']))
{
header('Location: login.php');
die;
}
?>
When I tested it on my PC (running WampServer 5), it worked out.
But now hosted on Stoli, it says:
Warning: Cannot modify header information - headers already sent by (output started at /home/scorch94/public_html/gsm/index.php:2) in /home/scorch94/public_html/gsm/index.php on line 5
Any help?
Edit:
Sorry for bumping, but I really need an answer
Last edited: