I'm a new Sitecore Analytics developer (Sitecore 6.3.1), and I'm wondering what is going on with Sessions and GlobalSessions with regard to storing Profiles data. Upon reading the Analytics Configuration Reference, I see that:
Analytics profiles differ from security profiles and analytics tags. Analytics profiles apply to individual sessions in individual Web clients rather than to users or global sessions.
I want to accumulate scores for users based on the Global Session, but looking at the API in reflector, it appears that there is no relationship defined between the Session and GlobalSession objects... it looks like I will need to join Session and GlobalSession at the data layer, get a list of Sessions there and then build my own conditional rules for rendering, rather than use an API method or anything else baked in.
My questions are:
To modify this for version 6.3, take a look at 'Sitecore.Analytics.Pipelines.RenderingConditions.EvaluateProfileKeys' in the analytics pipelines. You will have to do a custom implementation of this class to accumulate scores for all sessions.