In Microsoft Commerce Server 2009, a change has been made in the web farm scenario Profile Cache Coherency implementation, compared to Microsoft Commerce Server 2007.
In Microsoft Commerce Server 2007, you needed to call Profile.Refresh() to retrieve profile data from the database and update the local cache on one webserver when the cookie in HTTP requests has a later timestamp than the one in the Profile record in the profile cache.
In Microsoft Commerce Server 2009, queryUser.SearchCriteria.Model.DateModified is used to determine if a profile needs to be refreshed in the Commerce Server foundation APIs. A cookie needs to be assigned with a timestamp when the profile is updated, and then queryUser.SearchCriteria.Model.DateModified is assigned to the timestamp stored in the cookie before a profile is queried. Due to this change, Commerce Server profiles in the cache are synchronized among the web servers in a web farm.