Files
mono/mcs/class/System.Web/System.Web.SessionState/ISessionHandler.cs
T
Gonzalo Paniagua Javier 36879b3188 2004-05-05 Gonzalo Paniagua Javier <[email protected]>
* 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
2004-05-05 18:45:08 +00:00

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);
}
}