public static void ClearSession() { if (UseCacheInsteadOfSession()) { CacheService.Clear(); } else { SessionServices.Clear(); } }