Exemple #1
0
        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));
        }
Exemple #2
0
 public override void RemoveItem(HttpContext context, string id, object lockId, SessionStateStoreData item)
 {
     RedisHelper.Remove(id);
 }