Can't update properties of stored objects
-
Hi there
i’m trying to update properties of a stored object (a stdClass). But they won’t be updated inside the session.
for example$s = WP_Session::get_instance(); $s['obj'] = new stdClass(); $s['obj']->test = 'yep';
will correctly store the stdClass into the session. But when i later wan’t to change “test” or add a new property to “obj”, it will be lost upon the next reload.
What’s wrong here? Thank you for any help.
Cheers
Stefan
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Can't update properties of stored objects’ is closed to new replies.