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? 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. 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
Archived
This topic is now archived and is closed to further replies.