// // 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; expireCallback (key, new SessionStateStoreData ( item.items, SessionStateUtility.GetSessionStaticObjects (HttpContext.Current), item.timeout)); } else expireCallback (key, null); } } } } #endif