Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Old
- var isverified = '<?php echo isset($_SESSION["verified"]); ?>';
- if( isverified != "1" ) {
- //alert("Your session has timed out. Please log in again.");
- <?php
- wp_safe_redirect( 'welcome' );
- ?>
- }
- // New
- var isverified = '<?php echo isset($_SESSION["verified"]); ?>';
- if( isverified != "1" ) {
- //alert("Your session has timed out. Please log in again.");
- document.location.href = '<?php echo site_url('welcome') ?>';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement