public void SetSession(string key, object value) { if (string.IsNullOrWhiteSpace(key)) { throw new Exception("Key is Null or Epmty"); } key = CreatSessionCookie() + "_" + key; CacheAction.SetCache(key, value); }
public object this[string key] { get { key = CreatSessionCookie() + "_" + key; return(CacheAction.GetCache(key)); } set { if (value == null) { CacheAction.RemoveCache(key); } else { SetSession(key, value); } } }
public void RemoveSession(string key) { key = CreatSessionCookie() + "_" + key; CacheAction.RemoveCache(key); }