I\'m losing the data in $_SESSION when I do a header redirect. When I walk through this with a debugger I can see all my data in $_SESSION before I exit();
Make sure you are using the function session_start(); before the if-statement on myaccount.php
session_start();
myaccount.php