PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
do you include this file in any other file, if you do, make sure you don't have any output prior to calling ob_start; however, if you need them there, then they should be inside ob_start() as well.
I've never used ob_start when setting sessions, so it might be superfluous. The error you're getting is because something's been sent before you goof with the session. A common problem is having a space or a blank line before the "<?PHP" declaration
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Ya, what ob_start does is it stops anything being sent to the browser, from that point on. It doesn't stop anything from happening before it's called. My suggestion would be to pull the data you need out of $_SESSION right at the top of the page, then destroy the session before anything is sent to the browser.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.