// // System.Web.SessionState.SessionInProcHandler // // Authors: // Marek Habersack SessionIDManager.SessionIDMaxLength) throw new HttpException ("Session ID too long"); } void OnSessionRemoved (string key, object value, CacheItemRemovedReason reason) { if (expireCallback != null) { if (value is SessionStateStoreData) expireCallback (key, (SessionStateStoreData)value); else if (value is InProcSessionItem) { InProcSessionItem item = (InProcSessionItem)value; if (item.resettingTimeout) { item.resettingTimeout = false; return; } expireCallback (key, new SessionStateStoreData ( item.items, HttpApplicationFactory.ApplicationState.SessionObjects, item.timeout)); } else expireCallback (key, null); } } } } #endif