Warning: count(): Parameter must be an array or an object that implements Countable in /customers/b/0/d/joethemes.com/httpd.www/wp-includes/post-template.php on line 284

redirect or logout user from a php application very easy

 In Articles
 <?php
$variablephp = $_SESSION[‘uname’];
?>
    <script>
   
    setInterval(function() {
  // method to be executed;
       
        var variablejs = “<?php echo $variablephp; ?>” ;
alert(“variablejs = ” + variablejs);
        if(){}
       
}, 5000);
   
    </script>
Recent Posts

Leave a Comment