RE: [coldbox:16930] Caching

Ok, so to confirm, every person’s session contains a user object with the same information. Next step: Is it is the same actual user instance in memory, or is it two objects that contain identical data.

In your user’s init, or just anywhere at the top of the component (so it runs when the user object is created), put this code:

Now, log in with two different people and dump the user object again. If the UUIDs are the same, everyone is sharing a single instance of user. If the UUIDs are different, you’re not populating the user objects with the right data.

I think it’s time for you to share the code in UserService.authenticateUser() now.



ColdBox Platform Evangelist
Ortus Solutions, Corp

ColdBox Platform: