I'm trying to use an object in a session variable in PHP4, but I keep getting the following error:
Fatal error: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition search of the object you are trying to operate on was loaded before the session was started in c:\windows\desktop\workfile.php on line 18
So I interpret this to mean that I have to include the class definition before calling session_start initially, but i can't seem to do this without getting this error:
Warning: Cannot send session cache limiter - headers already sent (output started at HtmlElement.obj:2) in c:\windows\desktop\search.php on line 6
So what am I supposed to do to use objects as session variables?
I appreciate your help,
Sonny