* SessionStateServerHandler.cs: CONFIGURATION_2_0 => NET_2_0.
* SessionSQLServerHandler.cs: same.
* SessionStateModule.cs: same.
* ISessionHandler.cs: same.
* SessionInProcHandler.cs: same.
svn path=/trunk/mcs/; revision=56414
+2006-02-01 Chris Toshok <toshok@ximian.com>
+
+ * SessionStateServerHandler.cs: CONFIGURATION_2_0 => NET_2_0.
+
+ * SessionSQLServerHandler.cs: same.
+
+ * SessionStateModule.cs: same.
+
+ * ISessionHandler.cs: same.
+
+ * SessionInProcHandler.cs: same.
+
2006-01-18 Konstantin Triger <kostat@mainsoft.com>
* HttpSessionState.jvm.cs: correcting serialization conditions.
{
void Dispose ();
void Init (SessionStateModule module, HttpApplication context,
-#if CONFIGURATION_2_0
+#if NET_2_0
SessionStateSection config
#else
SessionConfig config
{
class SessionInProcHandler : ISessionHandler
{
-#if CONFIGURATION_2_0
+#if NET_2_0
SessionStateSection config;
#else
SessionConfig config;
public void Dispose () { }
public void Init (SessionStateModule module, HttpApplication context,
-#if CONFIGURATION_2_0
+#if NET_2_0
SessionStateSection config
#else
SessionConfig config
state = new HttpSessionState (sessionID, // unique identifier
new SessionDictionary(), // dictionary
HttpApplicationFactory.ApplicationState.SessionObjects,
-#if CONFIGURATION_2_0
+#if NET_2_0
(int)config.Timeout.TotalMinutes, // XXX is this right? we lose some precision here, but since the timeout is in minutes *anyway*...
#else
config.Timeout, //lifetime before death.
SessionStateMode.InProc,
read_only); //readonly
-#if CONFIGURATION_2_0
+#if NET_2_0
TimeSpan timeout = TimeSpan.FromMinutes ((int)config.Timeout.TotalMinutes);
#else
TimeSpan timeout = new TimeSpan (0, config.Timeout, 0);
{
private static Type cncType = null;
private IDbConnection cnc = null;
-#if CONFIGURATION_2_0
+#if NET_2_0
private SessionStateSection config;
#else
private SessionConfig config;
}
public void Init (SessionStateModule module, HttpApplication context,
-#if CONFIGURATION_2_0
+#if NET_2_0
SessionStateSection config
#else
SessionConfig config
id = SessionId.Create (module.Rng);
session = new HttpSessionState (id, new SessionDictionary (),
HttpApplicationFactory.ApplicationState.SessionObjects,
-#if CONFIGURATION_2_0
+#if NET_2_0
(int)config.Timeout.TotalMinutes,
#else
config.Timeout,
true, config.CookieLess, SessionStateMode.SQLServer, read_only);
InsertSession (session,
-#if CONFIGURATION_2_0
+#if NET_2_0
(int)config.Timeout.TotalMinutes
#else
config.Timeout
}
}
#else
-#if CONFIGURATION_2_0
+#if NET_2_0
static SessionStateSection config;
#else
static SessionConfig config;
handler.Dispose();
}
-#if CONFIGURATION_2_0
+#if NET_2_0
SessionStateSection GetConfig ()
#else
SessionConfig GetConfig ()
if (config != null)
return config;
-#if CONFIGURATION_2_0
+#if NET_2_0
config = (SessionStateSection) WebConfigurationManager.GetSection ("system.web/sessionState");
#else
config = (SessionConfig) HttpContext.GetAppConfig ("system.web/sessionState");
public void Init (HttpApplication app)
{
sessionForStaticFiles = (Environment.GetEnvironmentVariable ("MONO_XSP_STATIC_SESSION") != null);
-#if CONFIGURATION_2_0
+#if NET_2_0
SessionStateSection cfg = GetConfig ();
#else
SessionConfig cfg = GetConfig ();
internal void OnSessionRemoved (string key, object value, CacheItemRemovedReason reason)
{
-#if CONFIGURATION_2_0
+#if NET_2_0
SessionStateSection cfg = GetConfig ();
#else
SessionConfig cfg = GetConfig ();
const string CookieName = "ASPSESSION";
private RemoteStateServer state_server;
-#if CONFIGURATION_2_0
+#if NET_2_0
private SessionStateSection config;
#else
private SessionConfig config;
}
public void Init (SessionStateModule module, HttpApplication context,
-#if CONFIGURATION_2_0
+#if NET_2_0
SessionStateSection config
#else
SessionConfig config
sobjs = HttpStaticObjectsCollection.FromByteArray (item.StaticObjectsData);
session = new HttpSessionState (id, dict,
HttpApplicationFactory.ApplicationState.SessionObjects,
-#if CONFIGURATION_2_0
+#if NET_2_0
(int)config.Timeout.TotalMinutes, // XXX is this right? we lose some precision here, but since the timeout is in minutes *anyway*...
#else
config.Timeout,
dict = new SessionDictionary ();
sobjs = HttpApplicationFactory.ApplicationState.SessionObjects;
item = new StateServerItem (dict.ToByteArray (), sobjs.ToByteArray (),
-#if CONFIGURATION_2_0
+#if NET_2_0
(int)config.Timeout.TotalMinutes
#else
config.Timeout
state_server.Insert (id, item);
session = new HttpSessionState (id, dict, sobjs,
-#if CONFIGURATION_2_0
+#if NET_2_0
(int)config.Timeout.TotalMinutes,
#else
config.Timeout,