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] Link to comment https://forums.phpfreaks.com/topic/15308-logout-and-session_destroy-help-solved/ Share on other sites More sharing options...
digitalgod Posted July 22, 2006 Author Share Posted July 22, 2006 nevermind it works now Link to comment https://forums.phpfreaks.com/topic/15308-logout-and-session_destroy-help-solved/#findComment-61942 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.