Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(document).ready(function(){
- setInterval(function(){
- $.post("users/helpers/logoutcheck.php", {loginstatus:$("#loginstatus").text()},
- function(data) {
- //data returns either 0 or the URL to go to, calculated by the PHP page
- if (data != '0') {window.location.replace(data);}
- });
- },5000);
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement