object persistence in php

后端 未结 7 2259
孤城傲影
孤城傲影 2020-12-14 02:48

I am fairly new to web programming, I have mainly used java to create desktop applications in the past.

I\'m trying to figure out how to create persistent objects in

7条回答
  •  被撕碎了的回忆
    2020-12-14 03:02

    It is possible to store objects in the current session. Now just create a base class which is able to store and recreate the object itself. Any derived object will then also be persistent.

    You might want to read here : persistent base class and example

    As far as i know the session is stored in RAM and thus should be faster than serialize the objects to disk to achieve persistence.

提交回复
热议问题