Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $set = setcookie('username','Dhiemas Ganisha');
- if($set){
- if ($_SESSION['username'] = "session_username"){ ?>
- <div class="alert alert-success alert-dismissible">
- <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
- <h4><i class="icon fa fa-check"></i> Success!</h4>
- Success Login, please wait for 3 seconds. if you not redirect, <a href="../../page/portal">click here</a>.
- <script language=javascript>
- setTimeout("location.href='../../page/portal'", 3000);
- </script>
- </div>
- <script>
- swal("Success!", "You will directed to portal in 3 seconds. please wait!", "success");
- </script>
- <? } else {
- header('Location: ../../login.php');
- }
- }else{
- echo "Cookie tidak ter-set";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement