public void SetSessionContext(PersonalisationContext context) { try { HttpContext.Current?.Session?.Add(_personalisationConfig.SessionName, context); } catch (Exception ex) { _logger.Error(typeof(SessionService), ex); } }
public void ClearSessionTags(PersonalisationContext context) { try { if (context != null) { context.Tags = null; HttpContext.Current?.Session?.Add(_personalisationConfig.SessionName, context); } } catch (Exception ex) { _logger.Error(typeof(SessionService), ex); } }