public override void CreateUninitializedItem(HttpContext context, string id, int timeout) { RedisSessionState state = new RedisSessionState(null, null, timeout); RedisHelper.Set <string>(id, state.ToJson(), DateTime.Now.AddHours(1)); }
public override void RemoveItem(HttpContext context, string id, object lockId, SessionStateStoreData item) { RedisHelper.Remove(id); }