Originally Posted by majorglory
Derek:
I did it and I got a series of errors
Dark: How do I do that?
I'm a COMPLETE noob when it comes to PHP. If the answer is really obvious then I'm sorry.
|
For the first problem, I would try wrapping the session stuff with the output buffering functions ob_start() and ob_end_flush().
Example:
Code:
ob_start();
session_start();
ob_end_flush();
For the second problem, session_destroy() or session_unset() should do the trick. You could also change the values of each $_SESSION index to "" (ie. $_SESSION['hello'] = ""). That would work too.