reisve Posted May 31, 2013 Share Posted May 31, 2013 HiI hve a page with sessions. They work and I get it doing what is suposed to. However, I heve a link to destroy the session (logout) mas the user stays logedin. The script I cal from the logout link is this: <?php session_destroy(); header("Location: index.php"); ?> Can someone help me out with this? Quote Link to comment https://forums.phpfreaks.com/topic/278647-session_destry-not-destroying-the-session/ Share on other sites More sharing options...
requinix Posted May 31, 2013 Share Posted May 31, 2013 You have to session_start() first. Quote Link to comment https://forums.phpfreaks.com/topic/278647-session_destry-not-destroying-the-session/#findComment-1433463 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.