I'm registering an object as a session variable. I've read that the class definition needs to be appear before the session_start() but when I do that I keep getting:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at
This line disappears if I put the session_start right after the <?php at the beginning of the document but since I have to include the class beofre it I can't think of a solution.
Thanks in advance for any help,