+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>
public bool IsNewSession {
get { return _newSession; }
- set { _newSession=value; }
}
public bool IsReadOnly {
get { return _dict; }
}
+ internal void SetNewSession (bool value)
+ {
+ _newSession = value;
+ }
+
public void Abandon ()
{
_abandoned = true;
// 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.
// and returns it.
context.SetSession (container.SessionState);
- context.Session.IsNewSession = true;
+ context.Session.SetNewSession (true);
// And we're done!
return true;
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";
namespace System.Web.SessionState {
[Serializable]
- public class StateServerItem {
+ class StateServerItem {
private byte [] dict_data;
private byte [] sobjs_data;