Commit Graph
24 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 f0774451ea 2007-11-23 Marek Habersack <[email protected]>
* SessionSQLServerHandler.cs: Remove a memory leak and improve
	performance by preparing SQL statements and caching them for later
	reuse. Patch from Hubert FONGARNAND
	<[email protected]>, thanks!

svn path=/trunk/mcs/; revision=90225
2007-11-23 14:37:23 +00:00
Marek Habersack fa423bc998 2007-01-26 Hubert FONGARNAND <[email protected]>
* SessionSQLServerHandler.cs: differentiate session between applications
	this require to add an AppName column to the aspstatetempsessions table


svn path=/trunk/mcs/; revision=76243
2007-04-25 10:48:00 +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
Robert Jordan 4c03d7acfc 2006-12-06 Robert Jordan <[email protected]>
* SessionSQLServerHandler.cs: Prepare the SQL statements.
	Patch from Hubert FONGARNAND.


svn path=/trunk/mcs/; revision=69113
2006-12-06 16:38:07 +00:00
Miguel de Icaza dfe0ca552e Patch from Hubert FONGARNAND to insert fields in the appropriate order
svn path=/trunk/mcs/; revision=66648
2006-10-13 15:58:16 +00:00
Miguel de Icaza 90a3832a69 2006-10-12 Hubert FONGARNAND <[email protected]>
Patch from Hubert FONGARNAND
        
        * SessionSQLServerHandler.cs (selectCommand): Instead of using
        SELECT * for pulling the data out of the ASPStateTempSessions,
use
        the explicit column names.  This allows users to change the
table
        and not have any undesired side effects for our code.

        (ReadBytes): This patch corrects a bug too in ReadBytes. The
index parameter
        was not properly used when calculating the size of the data.


svn path=/trunk/mcs/; revision=66601
2006-10-12 14:48:21 +00:00
Robert Jordan ada2284700 In .:
2006-09-03  Robert Jordan  <[email protected]>

	* SessionSQLServerHandler.cs: persist and handle the "timeout" and
	"expire" properties of the session. Fixes bug #78281.
	Patch by Boris Dores <[email protected]>.


svn path=/trunk/mcs/; revision=64830
2006-09-03 19:19:22 +00:00
Gonzalo Paniagua Javier 001496e1f2 2006-03-15 Gonzalo Paniagua Javier <[email protected]>
* SessionSQLServerHandler.cs: if the connection to the DB is lost, retry
	the select/update/insert/delete commands after reconnecting.
	Fixes bug #77785.


svn path=/trunk/mcs/; revision=58047
2006-03-15 21:47:57 +00:00
Robert Jordan a3aeabcbae 2006-03-04 Robert Jordan <[email protected]>
* SessionSQLServerHandler.cs: make SQL statements and parameters
	provider independent/configurable.
	* SessionSQLServerHandler.cs (SelectSession): properly dispose
	the data reader. Fixes bug #77698.


svn path=/trunk/mcs/; revision=57587
2006-03-04 22:36:24 +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 db3acd1383 * SessionStateModule.cs: If using cookieless sessions add an
onbegin request handler that parsers out session ids and rewrites
	the path. Also redirect to a url with an embedded session id if we
	are creating a new cookieless session.
	* SesionInProcHandler.cs:
	* SessionSQLServerHandler.cs:
	* SessionStateServerHandler.cs: Use SessionId::Lookup to lookup session
	ids, don't set the session id cookie anymore. That is handled by
	the SessionStateModule.
	* SessionId.cs: Add method for looking up session ids, add
	some constants.

svn path=/trunk/mcs/; revision=20759
2003-12-04 05:47:16 +00:00
Jackson Harper 0fae173e71 * SessionSQLServerHandler.cs: Fix typo in param name.
svn path=/trunk/mcs/; revision=20486
2003-11-26 18:06:26 +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 08c0a14710 * ISessionHandler.cs: Pass the SessionStateModule to handlers when
updating.
	* SessionSqlServerHandler.cs:
	* SessionInProcHandler.cs: Accept SessionStateModule when
	updating. Use new SessionId.Create method for creating session
	ids.
	* SessionStateModule.cs: Add a random number generator that will
	be used for creating session ids. Pass this to handlers when
	updating.
	* SessionId.cs: New class for creating session ids.

svn path=/trunk/mcs/; revision=19689
2003-11-06 19:25:32 +00:00
Jackson Harper 804bccf91f * HttpSessionState.cs: Make the SessionDictionary accessable
* ISessionHandler.cs: Add method to update the session state
	data in the handler. Pass the session config to handlers when
	initializing.
	* SessionConfig.cs: Add StateNetworkTimeout
	* SessionInProcHandler.cs: Updates because interface has
	changed, all functionality is the same.
	* SessionStateModule.cs: Get new config items, allow SQLServer
	session manager type. Update session handlers when the session
	state has been released.
	* SessionStateSectionHandler.cs: Add StateNetworkTimeout
	* SessionSQLServerHandler.cs: New class allows sessions to be
	stored in a database.

svn path=/trunk/mcs/; revision=19596
2003-11-03 21:08:59 +00:00