SplObjectStorage class cannot be stored in session variable

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
matt0956
Forum Newbie
Posts: 2
Joined: Thu Oct 08, 2009 1:17 am

SplObjectStorage class cannot be stored in session variable

Post by matt0956 »

My local developing server PHP version is 5.2.9 - 2
Production Server PHP version is 5.3.0

I use SplObjectStorage class to store a list of object and then store SplObjectStorage instance in session variable. When I retrieve that session variable from another page. I can retrive those classes from SplObjectStorage but all these instances are empty.

This bug only happens on my production server. It works very well on my developing server.

Thanks in advance to anyone who can help me.
matt0956
Forum Newbie
Posts: 2
Joined: Thu Oct 08, 2009 1:17 am

Re: SplObjectStorage class cannot be stored in session variable

Post by matt0956 »

Seems there are items in the list but every item is null.
Post Reply