Implemented buddySession which aggregates sessions of the same userid.