Commit Graph
15 Commits
Author SHA1 Message Date
Marek Habersack b92349a289 2008-04-28 Marek Habersack <[email protected]>
* Cache.cs: refactoring - move the timeout setting code to
	separate methods, so that it can be accessed from outside the
	class. Fixes bug #382644

2008-04-28  Marek Habersack  <[email protected]>

	* ISessionHandler.cs: added new method, Touch, to reset the item
	timeout.

	* SessionStateServerHandler.cs, SessionSQLServerHandler.cs,
	SessionInProcHandler.cs: added implementation of the
	ISessionHandler Touch method, to reset item timeout. Fixes bug
	#382644

	* StateServerItem.cs: made the Timeout property writable.

	* SessionStateModule.cs: reset the item timeout after
	OnSessionStart has returned. Fixes bug #382644

	* RemoteStateServer.cs: added a method to reset item timeout.

svn path=/trunk/mcs/; revision=102034
2008-04-28 13:35:02 +00:00
Marek Habersack f0d21e5953 2007-11-06 Marek Habersack <[email protected]>
* SessionStateServerHandler.cs: properly retrieve session id in
	the cookieless mode. Prevents endless browser redirection.

svn path=/trunk/mcs/; revision=88971
2007-11-06 13:13:36 +00:00
Marek Habersack 434e59e4bc Implementation of the 2.0 session state model
svn path=/trunk/mcs/; revision=69828
2006-12-20 18:34:00 +00:00
Chris Toshok 7c71f1b359 2006-02-01 Chris Toshok <[email protected]>
* 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 19:53:55 +00:00
Chris Toshok 968ea3d729 2005-11-28 Chris Toshok <[email protected]>
* SessionStateModule.cs: CONFIGURATION_2_0 work.

	* SessionSQLServerHandler.cs: CONFIGURATION_2_0 work.

	* SessionInProcHandler.cs: CONFIGURATION_2_0 work.

	* SessionStateServerHandler.cs: CONFIGURATION_2_0 work.
	
	* ISessionHandler.cs (Init): @config is a SessionStateSection if
	CONFIGURATION_2_0.


svn path=/trunk/mcs/; revision=53603
2005-11-28 23:35:29 +00:00
Gonzalo Paniagua Javier d54dc93a8f 2005-05-27 Gonzalo Paniagua Javier <[email protected]>
* RemoteStateServer.cs:
	* HttpSessionState.cs:
	* SessionSQLServerHandler.cs:
	* SessionInProcHandler.cs:
	* SessionStateServerHandler.cs: remove abandoned sessions in the 
	ReleseRequest state. Fixes bug #75051.


svn path=/trunk/mcs/; revision=45100
2005-05-27 05:10:21 +00:00
Gonzalo Paniagua Javier 10b476e707 2005-04-20 Gonzalo Paniagua Javier <[email protected]>
* SessionSQLServerHandler.cs:
	* SessionStateServerHandler.cs: removed warnigs.


svn path=/trunk/mcs/; revision=43364
2005-04-20 22:21:51 +00:00
Duncan Mak d1c09fcc67 Add licensing info
svn path=/trunk/mcs/; revision=30345
2004-06-24 20:59:43 +00:00
Gonzalo Paniagua Javier d35467e43d 2004-06-11 Gonzalo Paniagua Javier <[email protected]>
* SessionSQLServerHandler.cs:
	* SessionStateServerHandler.cs:
	* ISessionHandler.cs: added new parameter to Init.

	* SessionInProcHandler.cs: use the HttpRuntime cache to store the
	sessions and handle expiration.

	* SessionStateModule.cs: added OnSessionRemoved internal method that is
	called whenever a session expires or is removed.

svn path=/trunk/mcs/; revision=29284
2004-06-11 08:41:50 +00:00
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
Gonzalo Paniagua Javier e43db281d8 2004-02-09 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplication.cs: ApplicationState is inited by the
	factory so, return that value in the property. when we use the context
	Session, cache it in the instance field.

	* System.Web/HttpApplicationFactory.cs: fixed target Type for the
	event when hooking application and module events. Initialize application
	and session scope objects. Fixes non-aplication events hook up.

	* System.Web/HttpStaticObjectsCollection.cs: added StaticItem and delay
	the creation of the objects until they are requested.

	* System.Web.SessionState/SessionInProcHandler.cs:
	* System.Web.SessionState/SessionSQLServerHandler.cs:
	* System.Web.SessionState/SessionStateServerHandler.cs: when creating
	the HttpSessionStateObjets, use the session objects that we know about
	in HttpApplicationFactory.

	Fixes bug #53387.

svn path=/trunk/mcs/; revision=22900
2004-02-09 15:17:56 +00:00
Jackson Harper e9957c6999 * SessionStateModule.cs: Add readonly property for readonly
sessions. This fixes bug #51647.
	* SessionInProcHandler.cs:
	* SessionSQLServerHandler.cs:
	* SessionStateServerHandler.cs: Cleanup params for
	HttpSessionState ctor. Make sure to always set is new, cookieless,
	and readonly properly.

svn path=/trunk/mcs/; revision=20811
2003-12-05 20:08:40 +00:00
Jackson Harper 6d33b34794 * RemoteStateServer.cs: Update the session dictionary data and the
static objects data.
	* SessionDictionary.cs: Remove type serialization methods, these
	have been moved to a utility class. Add convenience methods for
	converting to/from byte arrays.
	* SessionSQLServerHandler.cs:
	* SessionStateServerHandler.cs: Save/Restore static objects. Use new
	to/from byte array methods.
	* StateServerItem.cs: Hold static objects data.

svn path=/trunk/mcs/; revision=20439
2003-11-25 21:43:29 +00:00
Jackson Harper f82c6fa251 * SessionStateServerHandler.cs: Parse connection string. Need to
look into what MS allows/doesn't allow better.

svn path=/trunk/mcs/; revision=20413
2003-11-25 04:25:24 +00:00
Jackson Harper 04cb1c4ce5 * RemoteStateServer.cs: The state server object that will reside
on the server and store session data and ids.
	* StateServerItem.cs: Container for session data.
	* SessionStateServerHandler.cs: Handler that communicates with the
	StateServer so sessions can be stored out of process.
	* SessionStateModule.cs: Allow state server mode.

svn path=/trunk/mcs/; revision=20411
2003-11-25 03:42:46 +00:00