For some reason when I set a $SESSION after a mysql statement, the $SESSION ends up being assigned before anything before it has a chance to run...
I have no idea what is going on here, all I have is an inkling... I'm afraid that ob_start() is responsible for this, and its become a major thorn in my side, and my temporary solution is causing more trouble then it is worth....
So,
a) What could be causing this, if not ob_start()
b) Regardless of the answer to (a), how can I fix this?
Example of it (This is obviously not the actual code, just pseudo code as the actual code is nearly 1000 lines long):
if ($action == this) {
$mysql->query(add the session into the database);
//Done with the session
$_SESSION['blah'] = 0;
redirect to new page();
}