Get Session Token for collection_link
        
        :param str resource_path:
            Self link / path to the resource

        :return:
            Session Token dictionary for the collection_id
        :rtype:
            dict

def get_session_token(self, resource_path):
        """
        Get Session Token for collection_link
        
        :param str resource_path:
            Self link / path to the resource

        :return:
            Session Token dictionary for the collection_id
        :rtype:
            dict
        """

        with self.session_lock:
            is_name_based = base.IsNameBased(resource_path)
            collection_rid = ''
            session_token = ''

            try:
                if is_name_based:
                    # get the collection name
                    collection_name = base.GetItemContainerLink(resource_path)
                    collection_rid = self.collection_name_to_rid[collection_name]
                else:
                    collection_rid = base.GetItemContainerLink(resource_path)

                if collection_rid in self.rid_to_session_token:
                    token_dict = self.rid_to_session_token[collection_rid]
                    session_token_list = []
                    for key in token_dict.keys():
                        session_token_list.append("{0}:{1}".format(key, token_dict[key].convert_to_string()))
                    session_token = ','.join(session_token_list)
                    return session_token
                else:
                    # return empty token if not found 
                    return ''
            except: 
                return ''