osCommerce Community Support Forums: [BLOG] Objects In The Session? - osCommerce Community Support Forums

Jump to content

Corporate Sponsor


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[BLOG] Objects In The Session?

#1 User is offline   osCommerce News Icon

  • Icon
  • Find Posts
  • Group: Team Member
  • Posts: 2,161
  • Joined: 28-January 06
  • Real Name:osCommerce News
  • Gender:Not Telling

Posted 26 September 2005 - 12:03 PM

Are 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.





Link to Article: http://blogs.oscomme...in-the-session/
osCommerce News (Syndication)
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic