I have a big issue and I can't solve it. I made a simple login script and it worked on my laptop's LAMP server. I was very happy and i uploaded it to my host, but there i couldn't log in. I solved that header() is not working after $_SESSION. My current test code without any login and everything:
<?php
session_start();
$_SESSION['test'] = 10;
header("Location: anything.php");
?>
And it doesn't redirect. Where is the problem?