Browse Source

Fix bug in SessionStateModule when session data is deleted

jmserrano 8 years ago
parent
commit
393c357c53

+ 1 - 1
mcs/class/System.Web/System.Web.SessionState_2.0/SessionStateModule.cs

@@ -290,8 +290,8 @@ namespace System.Web.SessionState
 					handler.ResetItemTimeout (context, container.SessionID);
 				}
 				else {
-					handler.ReleaseItemExclusive (context, container.SessionID, storeLockId);
 					handler.RemoveItem (context, container.SessionID, storeLockId, storeData);
+					handler.ReleaseItemExclusive (context, container.SessionID, storeLockId);
 					if (supportsExpiration)
 						// Make sure the expiration handler is not called after we will have raised
 						// the session end event.