Advertisement
dganisha

Untitled

Mar 27th, 2018
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $set = setcookie('username','Dhiemas Ganisha');
  3.                                 if($set){
  4.                                     if ($_SESSION['username'] = "session_username"){ ?>
  5.                                     <div class="alert alert-success alert-dismissible">
  6.                                         <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  7.                                         <h4><i class="icon fa fa-check"></i> Success!</h4>
  8.                                         Success Login, please wait for 3 seconds. if you not redirect, <a href="../../page/portal">click here</a>.
  9.                                         <script language=javascript>
  10.                                             setTimeout("location.href='../../page/portal'", 3000);
  11.                                         </script>
  12.                                     </div>
  13.                                     <script>
  14.                                         swal("Success!", "You will directed to portal in 3 seconds. please wait!", "success");
  15.                                     </script>
  16.                                     <? } else {
  17.                                         header('Location: ../../login.php');
  18.                                     }
  19.                                 }else{
  20.                                     echo "Cookie tidak ter-set";
  21.                                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement