squiblo Posted July 24, 2009 Share Posted July 24, 2009 logout.php <php session_start(); session_destroy(); header("location:index.php"); ?> i get a blank page at logout.php and it does not redirect me to index.php Quote Link to comment https://forums.phpfreaks.com/topic/167272-solved-redirect-on-logout/ Share on other sites More sharing options...
rhodesa Posted July 24, 2009 Share Posted July 24, 2009 you are missing the ? in the php tag: <?php session_start(); session_destroy(); header("location:index.php"); ?> Quote Link to comment https://forums.phpfreaks.com/topic/167272-solved-redirect-on-logout/#findComment-881949 Share on other sites More sharing options...
squiblo Posted July 24, 2009 Author Share Posted July 24, 2009 i dont realise how stupid i am sometimes Quote Link to comment https://forums.phpfreaks.com/topic/167272-solved-redirect-on-logout/#findComment-881952 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.