Created
January 15, 2018 00:50
-
-
Save wichaksono/fa2ecb976c3a9a5abf9be532ec80b1e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
session_start(); | |
if ( isset($_SESSION['user_login']) && $_SESSION['user_login'] != '' ) { | |
$halaman = $_SESSION['user_login']; | |
header('location:on-'. $halaman); | |
exit(); | |
} else { | |
header('location:login.php'); | |
exit(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment