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:
Sessions in PHP
from PHP http://ift.tt/20TPCGO
via IFTTT
Out Of Topic Show Konversi KodeHide Konversi Kode Show EmoticonHide Emoticon