[SOLVED] accessing data from a incomplete class

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tores
Forum Contributor
Posts: 120
Joined: Fri Jun 18, 2004 3:04 am

accessing data from a incomplete class

Post by tores »

Hi

I'm storing a class in a sessionvariable and all is fine... Until I access the same session- variable in another file. Then I can't seem to fetch the members of the class... When I do print_r on it php says that it's an incomplete_class... But the members are still there and correct..
Someone know why??

regards tores

edit: Okey... Think I found the problem... U should always include the file where the class is defined BEFORE u do session_start()... This solved my problem:)
Post Reply