You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by gb...@apache.org on 2006/06/30 22:58:02 UTC

svn commit: r418374 - in /ibatis/trunk/cs/mapper: IBatisNet.DataAccess/SessionStore/WebSessionStore.cs IBatisNet.DataMapper/SessionStore/WebSessionStore.cs

Author: gbayon
Date: Fri Jun 30 13:58:01 2006
New Revision: 418374

URL: http://svn.apache.org/viewvc?rev=418374&view=rev
Log:
-Cosmetic change

Modified:
    ibatis/trunk/cs/mapper/IBatisNet.DataAccess/SessionStore/WebSessionStore.cs
    ibatis/trunk/cs/mapper/IBatisNet.DataMapper/SessionStore/WebSessionStore.cs

Modified: ibatis/trunk/cs/mapper/IBatisNet.DataAccess/SessionStore/WebSessionStore.cs
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper/IBatisNet.DataAccess/SessionStore/WebSessionStore.cs?rev=418374&r1=418373&r2=418374&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper/IBatisNet.DataAccess/SessionStore/WebSessionStore.cs (original)
+++ ibatis/trunk/cs/mapper/IBatisNet.DataAccess/SessionStore/WebSessionStore.cs Fri Jun 30 13:58:01 2006
@@ -51,7 +51,6 @@
 			get
 			{
 				HttpContext currentContext = ObtainSessionContext();
-
 				return currentContext.Items[sessionName] as IDalSession;
 			}
 		}
@@ -64,7 +63,6 @@
 		public override void Store(IDalSession session)
 		{
 			HttpContext currentContext = ObtainSessionContext();
-
 			currentContext.Items[sessionName] = session;
 		}
 
@@ -73,7 +71,8 @@
 		/// </summary>
 		public override void Dispose()
 		{
-			// Will be remove by the system
+			HttpContext currentContext = ObtainSessionContext();
+			currentContext.Items[sessionName] = null;
 		}
 
 		

Modified: ibatis/trunk/cs/mapper/IBatisNet.DataMapper/SessionStore/WebSessionStore.cs
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/SessionStore/WebSessionStore.cs?rev=418374&r1=418373&r2=418374&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper/IBatisNet.DataMapper/SessionStore/WebSessionStore.cs (original)
+++ ibatis/trunk/cs/mapper/IBatisNet.DataMapper/SessionStore/WebSessionStore.cs Fri Jun 30 13:58:01 2006
@@ -24,7 +24,6 @@
 #endregion
 
 using System.Web;
-using IBatisNet.Common;
 using IBatisNet.Common.Exceptions;
 
 namespace IBatisNet.DataMapper.SessionStore
@@ -52,7 +51,6 @@
 			get
 			{
 				HttpContext currentContext = ObtainSessionContext();
-
                 return currentContext.Items[sessionName] as SqlMapSession;
 			}
 		}
@@ -64,7 +62,6 @@
         public override void Store(SqlMapSession session)
 		{
 			HttpContext currentContext = ObtainSessionContext();
-
 			currentContext.Items[sessionName] = session;
 		}
 
@@ -73,7 +70,8 @@
 		/// </summary>
 		public override void Dispose()
 		{
-			// Will be remove by the system
+			HttpContext currentContext = ObtainSessionContext();
+			currentContext.Items[sessionName] = null;
 		}