Fatal error: Unknown(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition <b>shoppingcart</b> of the object you are trying to operate on was loaded _before_ the session was started in C:\Program Files\Apache Group\Apache2\htdocs\mybenz\shoppingcart.php on line 29
session_register will work in new versions !!!
i can get session now i cant get session variable as userdefined object ?
i careated my own object but when getting from session i cant get it in my say
how is it possible
Originally posted by gannet
To user session variables you need to start the session, and you also need to register the variable. You can then use the variable. Like this: