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,