Sessions in PHP

Hello there,
I have been busy building a login system lately, and now everything but 1 thing works.
So when you are logged in you should be redirected to home.php, and when you are not logged in you should be redirected to index.php, so i came with this bit of code:
<?php
session_start();
if($_SESSION["login_user"] = true)
{
?>

//html goes in here

<?php
}
else {
header("location: /index.php");
}
?>
PHP:
but i wouldnt have come here if this worked. Here is the problem: it throws the...

Sessions in PHP

from PHP http://ift.tt/20TPCGO
via IFTTT
Previous
Next Post »
Thanks for your comment