Alternatives to persisting objects than using __destruct() in PHP

Posted by Michael on Stack Overflow See other posts from Stack Overflow or by Michael
Published on 2010-05-05T16:19:54Z Indexed on 2010/05/05 17:28 UTC
Read the original article Hit count: 173

I usually use a classes destructor method __destruct() to persist objects to session or what have you. It is just very convinient, but I'm curious to if there are any other methods that are equally appealing. Do you know of such?

The curiousity arose as I was to merge/utilize two frameworks that both made use of __destruct() for persistance resulting in a race-problem.

© Stack Overflow or respective owner

Related posts about php

Related posts about class