Hi, I'm developing a social service and I have a question about how user info should be loaded.
Let's assume a user clicks on an image, and I show him all of the comments. I need to know which comments the user liked. I was thinking that instead of loading all of the comment id's of all the comments the user liked over and over, I can just load them all when he/she logs in. However, I'm not sure if that's the right approach or how exactly to store them (I'm guessing storing arrays on $_SESSION isn't a really good idea. What's the best, most conventional, most space & time efficient to load user info such as that?
Undefined123 0 Newbie Poster
Dani 4,329 The Queen of DaniWeb Administrator Featured Poster Premium Member
Undefined123 0 Newbie Poster
Dani 4,329 The Queen of DaniWeb Administrator Featured Poster Premium Member
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.