Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Old
  2. var isverified = '<?php echo isset($_SESSION["verified"]); ?>';
  3. if( isverified != "1" ) {
  4.     //alert("Your session has timed out. Please log in again.");
  5.     <?php
  6.         wp_safe_redirect( 'welcome' );
  7.     ?>
  8. }
  9.  
  10. // New
  11. var isverified = '<?php echo isset($_SESSION["verified"]); ?>';
  12. if( isverified != "1" ) {
  13.     //alert("Your session has timed out. Please log in again.");
  14.     document.location.href = '<?php echo site_url('welcome') ?>';
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement