2004-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Fri, 23 Jan 2004 08:55:35 +0000 (08:55 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Fri, 23 Jan 2004 08:55:35 +0000 (08:55 -0000)
* HttpSessionState.cs:
* SessionInProcHandler.cs: IsNewSession doesn't have a public setter.

* SessionStateModule.cs: doesn't implement IRequiresSessionState.
* StateServerItem.cs: not public.

svn path=/trunk/mcs/; revision=22423

mcs/class/System.Web/System.Web.SessionState/ChangeLog
mcs/class/System.Web/System.Web.SessionState/HttpSessionState.cs
mcs/class/System.Web/System.Web.SessionState/SessionInProcHandler.cs
mcs/class/System.Web/System.Web.SessionState/SessionStateModule.cs
mcs/class/System.Web/System.Web.SessionState/StateServerItem.cs

index 769c9593fef9ab0856a15bdbc22ffcc4d6bbf9e4..93bf1dd8433eff6d1a3dcf35c755bf8637856e64 100644 (file)
@@ -1,6 +1,15 @@
+2004-01-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpSessionState.cs:
+       * SessionInProcHandler.cs: IsNewSession doesn't have a public setter.
+
+       * SessionStateModule.cs: doesn't implement IRequiresSessionState.
+       * StateServerItem.cs: not public.
+
 2004-01-05  Alon Gazit <along@mainsoft.com>
 
-       * SessionDictionary.cs: can't set item's value to null if the item is new.
+       * SessionDictionary.cs: can't set item's value to null if the item is
+       new.
 
 2003-12-25  Jackson Harper <jackson@ximian.com>
 
index 4a391e5720d0cb2364ca4709e4695d2b11a6aa34..0d9e63d73462890d2387a9c96ed8e59782e4cd7c 100644 (file)
@@ -80,7 +80,6 @@ public sealed class HttpSessionState : ICollection, IEnumerable
 
        public bool IsNewSession {
                get { return _newSession; }
-               set { _newSession=value; }
        }
 
        public bool IsReadOnly {
@@ -139,6 +138,11 @@ public sealed class HttpSessionState : ICollection, IEnumerable
                get { return _dict; }
        }
 
+       internal void SetNewSession (bool value)
+       {
+               _newSession = value;
+       }
+
        public void Abandon ()
        {
                _abandoned = true;
index ac560d49458bbb1059a187c61a1a84df673f70c3..072aa1ecab6cb343ee8de030be95d8ee5bbd8b00 100644 (file)
@@ -92,7 +92,7 @@ namespace System.Web.SessionState
                                // if we have a session, and it is not expired, set isNew to false and return it.
                                if (container!=null && container.SessionState!=null && !container.SessionState.IsAbandoned) {
                                        // Can we do this? It feels safe, but what do I know.
-                                       container.SessionState.IsNewSession = false;
+                                       container.SessionState.SetNewSession (false);
                                        // update the timestamp.
                                        container.Touch ();
                                         // Can we do this? It feels safe, but what do I know.
@@ -119,7 +119,7 @@ namespace System.Web.SessionState
 
                        // and returns it.
                        context.SetSession (container.SessionState);
-                       context.Session.IsNewSession = true;
+                       context.Session.SetNewSession (true);
 
                        // And we're done!
                        return true;
index d125edb7a2a4769584436039dd1800c67a8f4b06..a6beacaa44c5114bcc71228485afa50bae0f7003 100644 (file)
@@ -16,7 +16,7 @@ using System.Security.Cryptography;
 namespace System.Web.SessionState
 {
        [MonoTODO]
-       public sealed class SessionStateModule : IHttpModule, IRequiresSessionState
+       public sealed class SessionStateModule : IHttpModule
        {
                internal static readonly string CookieName = "ASPSESSION";
                internal static readonly string HeaderName = "AspFilterSessionId";
index 14ca097a3274dc3bb96c1c7728a55fbe7dcef53e..0b6d26046f0199bea4f0d76b3abc3f62ce6445ba 100644 (file)
@@ -12,7 +12,7 @@ using System;
 namespace System.Web.SessionState {
 
        [Serializable]
-       public class StateServerItem {
+       class StateServerItem {
 
                private byte [] dict_data;
                private byte [] sobjs_data;