View Single Post
07-10-2007, 09:09 PM
#5
Faceless is offline Faceless
Status: Junior Member
Join date: Mar 2007
Location:
Expertise:
Software:
 
Posts: 66
iTrader: 2 / 100%
 

Faceless is on a distinguished road

Send a message via MSN to Faceless

  Old

Originally Posted by majorglory View Post
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.