Author: kostat
Date: 2007-04-01 05:33:02 -0400 (Sun, 01 Apr 2007)
New Revision: 75254
Modified:
trunk/mcs/class/System.Web/System.Web.SessionState_2.0/SessionStateModule.cs
Log:
suppress errors for unsupported session mode and fallback to the servlet
session provider
Modified:
trunk/mcs/class/System.Web/System.Web.SessionState_2.0/SessionStateModule.cs
===================================================================
---
trunk/mcs/class/System.Web/System.Web.SessionState_2.0/SessionStateModule.cs
2007-04-01 08:40:02 UTC (rev 75253)
+++
trunk/mcs/class/System.Web/System.Web.SessionState_2.0/SessionStateModule.cs
2007-04-01 09:33:02 UTC (rev 75254)
@@ -114,7 +114,12 @@
return;
#if TARGET_J2EE
default:
- throw new NotSupportedException (String.Format
("The mode '{0}' is not supported. Only Custom mode is supported and maps to
J2EE session.", config.Mode));
+ config = new SessionStateSection ();
+ config.Mode = SessionStateMode.Custom;
+ config.CustomProvider =
"ServletSessionStateStore";
+ config.SessionIDManagerType =
"Mainsoft.Web.SessionState.ServletSessionIDManager";
+ config.Providers.Add (new ProviderSettings
("ServletSessionStateStore",
"Mainsoft.Web.SessionState.ServletSessionStateStoreProvider"));
+ goto case SessionStateMode.Custom;
#else
case SessionStateMode.InProc:
settings = new ProviderSettings (null, typeof
(SessionInProcHandler).AssemblyQualifiedName);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches