digitalgod Posted July 22, 2006 Share Posted July 22, 2006 hey guys,I made this logout script but it doesn't seem to work, all I get is a blank page and if I press back on the browser I'm still logged in..any clues why it's not working?[code]<?phpinclude("includes/config.php");if (isset($_COOKIE['remember'])) {setcookie("remember",$_COOKIE['remember'],time()-3600,"/",$site_address);print("<script> location=\"index.php\"; </script>");}else { if (isset($_SESSION['remember'])) { session_destroy(); print("<script> location=\"index.php\"; </script>"); } else { print("<script> location=\"index.php\"; </script>"); }}?>[/code] Quote Link to comment Share on other sites More sharing options...
digitalgod Posted July 22, 2006 Author Share Posted July 22, 2006 nevermind it works now Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.