If i havent confused you too much, is there anything else you can suggest?
This isn't a direct answer to your problem, but it might help you think things through. I also don't work with classes (only functions), so you'll have to adapt what I discuss to suit. The issue is that you're generating page content before you know what you're doing further down the page. A basic summary of your steps:
1. render header html 2. logout user 3. render more content & report successful logout 4. render footer
Whereas you really need to perform all actions which will affect the page BEFORE starting to render content. Shift the logout functionality above your output.
1. logout user 2. render header 3. render more content, and report successful logout 4. render footer
If you need to report errors or confirm the logout further down the page in the output, set some variables and echo them later.
Justin French
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php