Objects In The Session?
Written by Harald Ponce de Leon on September 26, 2005Are objects in the session really needed?
Some objects in the codebase are being stored in the session, such as the cart, customer, and navigation history class instances.
The customer and navigation history classes are now up to the new coding standards, and have also changed the logic to no longer store the object as a whole in the session, but to instead store the relevant data in the session that the class needs.
The class variables then reference the session data to prevent the information being twice in memory.
I don’t think this has an effect on performance (ie, gain or loss), but is however a nicer and cleaner implementation to work on.
Leave a Comment
You must be logged in to post a comment.
