Beispiel #1
0
        public override void RemoveItem(System.Web.HttpContext context, string id, object lockId, SessionStateStoreData item)
        {
            #region Removing Item from memcached
            this._client.Remove(id);
            #endregion

            if (this._bIsDbNone == false) // Saving to Db
            {
                #region Removing item from db
                using (IDbOperations objDb = DbFactory.CreateDbOperations(_strDbType, _strConn))
                {
                    objDb.RemoveItem(id, ApplicationName);
                }
                #endregion
            }
        }