mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* HttpSessionState.cs: added Clone (), which makes and exact copy but with a cloned SessionDictionary. When EnableSessionState is set to ReadOnly, we can modify the collection, but changes are not propagated. * ISessionHandler.cs: changed signature of UpdateContext(). * SessionDictionary.cs: added Clone. * SessionInProcHandler.cs: * SessionSQLServerHandler.cs: * SessionStateServerHandler.cs: don't create a new session if the handler do not require it. UpdateContext() now returns an HttpSessionState to the module. * SessionStateModule.cs: removed IsReadOnly as it is now passed as a parameter to the session handler. If the session is read-only, clone it so that it can be changed but changes are not kept. In short, we don't create session objects when not required and we honor the ReadOnly sessions. svn path=/trunk/mcs/; revision=26781
24 lines
604 B
C#
24 lines
604 B
C#
//
|
|
// System.Web.SessionState.ISessionHandler
|
|
//
|
|
// Authors:
|
|
// Stefan Görling, ([email protected])
|
|
//
|
|
// (C) 2003 Stefan Görling
|
|
//
|
|
// This interface is simple, but as it's internal it shouldn't be hard to change it if we need to.
|
|
//
|
|
namespace System.Web.SessionState
|
|
{
|
|
internal interface ISessionHandler
|
|
{
|
|
void Dispose ();
|
|
void Init (HttpApplication context, SessionConfig config);
|
|
HttpSessionState UpdateContext (HttpContext context, SessionStateModule module, bool required,
|
|
bool read_only, ref bool isNew);
|
|
|
|
void UpdateHandler (HttpContext context, SessionStateModule module);
|
|
}
|
|
}
|
|
|