Added ding_permissions and update ding_session_cache