I would like to make a object, which not need to create all the time….
for example, I have a user object, and the user is created from the db, so, when the user login, I can read the user object information from the db… each user make requests, I need to create a new user object again….Even I make a singleton object…It still can “keep” the object….But I want to save the communication between the php and the db…Is there any way to keep an object instead of query the db all the time? Thank you.
I would like to make a object, which not need to create all the
Share
Put it in $_SESSION ? That would make sense, if I read your question right