Commit Graph
57 Commits
Author SHA1 Message Date
Eyal Alalouf 9191e0c5db TARGET_J2EE ifdef reorder for readability
svn path=/trunk/mcs/; revision=47643
2005-07-25 13:42:03 +00:00
Eyal Alalouf 4f6403082f TARGET_J2EE compilation & integration fixes.
svn path=/trunk/mcs/; revision=47415
2005-07-19 16:08:09 +00:00
Eyal Alalouf 1f70d33b5d Added servlet binding for the Grasshoper J2EE configuration.
svn path=/trunk/mcs/; revision=47392
2005-07-18 16:29:25 +00:00
Gonzalo Paniagua Javier 00734b45ef typo :)
svn path=/trunk/mcs/; revision=46510
2005-06-25 20:52:40 +00:00
Gonzalo Paniagua Javier 03e7643927 2005-06-25 Gonzalo Paniagua Javier <[email protected]>
* SessionInProcHandler.cs: use cache.InsertPrivate.
	* SessionDictionary.cs: fix typo that made Close useless.


svn path=/trunk/mcs/; revision=46509
2005-06-25 20:49:31 +00:00
Ilya Kharmatsky 932abd4c77 svn path=/trunk/mcs/; revision=46210 2005-06-19 09:34:34 +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
Gonzalo Paniagua Javier 7d736eabc2 2005-03-02 Gonzalo Paniagua Javier <[email protected]>
* SessionStateModule.cs:
	* SessionId.cs: share the same RNG for all the instances of
	SessionStateModule.


svn path=/trunk/mcs/; revision=41373
2005-03-02 20:20:16 +00:00
Gonzalo Paniagua Javier 1ec0606eb0 2005-02-05 Gonzalo Paniagua Javier <[email protected]>
* SessionStateModule.cs: hack that makes static files work on sites that
	use the Session object in global.asax. You need to set
	MONO_XSP_STATIC_SESSION to enable it and by dong so you will lose a bit 
	of performance when serving static files. Fixes bug #71133.


svn path=/trunk/mcs/; revision=40193
2005-02-06 00:02:02 +00:00
Gonzalo Paniagua Javier 6b02b28598 2004-11-30 Gonzalo Paniagua Javier <[email protected]>
* System.Web.SessionState/SessionStateModule.cs: set the path modifier
	when using cookie-less sessions.

	* System.Web/HttpResponse.cs: fixed ApplyAppPathModifier to insert the
	session ID.
	* System.Web.UI/Control.cs: fixed ResolveUrl for relative URLs when
	using cookie-less sessions.

	* System.Web.Util/UrlUtils.cs: made (Insert|Get|Remove)SessionId use
	the appRoot + SessionID + vpath format.

	Fixes the 3 issues reported in bug #66623.


svn path=/trunk/mcs/; revision=36818
2004-11-30 06:33:56 +00:00
Gonzalo Paniagua Javier 6ed6c3f05f forgotten
svn path=/trunk/mcs/; revision=34748
2004-10-06 04:48:57 +00:00
Gonzalo Paniagua Javier 50e3e9fef4 2004-10-06 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpRequest.cs: CurrentExecutionFilePath is the one that
	changes when Transfer or Execute are used, not FilePath.

	* System.Web/HttpServerUtility.cs: moved form saving/restoring from
	Transfer to Execute, as it's needed there too. the query string is
	correctly set now. Fixes bug #67388.

	* System.Web/HttpContext.cs:
	* System.Web.SessionState/SessionStateModule.cs: use SetCurrentExePath
	instead of SetFilePath.

svn path=/trunk/mcs/; revision=34747
2004-10-06 04:48:39 +00:00
Gonzalo Paniagua Javier b53f5e5bb9 2004-09-09 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpStaticObjectsCollection.cs:
	* System.Web.SessionState/HttpSessionState.cs: don't share static
	session objects declared in the application file across the application,
	but on a per-session basis. Fixes bug #65446.

svn path=/trunk/mcs/; revision=33685
2004-09-10 02:17:15 +00:00
Sanja Gupta e809bba476 ChangeLog: Updated ChangeLog.
SessionStateItemExpireCallback.cs: Explicit modifier "sealed" not
        required in definition as delegates, by default are sealed.

svn path=/trunk/mcs/; revision=33082
2004-08-31 10:03:27 +00:00
Sanja Gupta d911399a3a ChangeLog: Updated ChangeLog.
SessionStateItemExpireCallback.cs: Added delegate.
SessionStateStoreData.cs: Added a new class.

svn path=/trunk/mcs/; revision=32062
2004-08-09 10:26:46 +00:00
Sanja Gupta 2ecf64849f ChangeLog: Updated ChangeLog.
IHttpSessionState.cs:
ISessionIDModule.cs:
ISessionStateItemCollection.cs: Added new interfaces.

svn path=/trunk/mcs/; revision=31918
2004-08-05 10:42:53 +00:00
Sanja Gupta 64fa4cc158 ChangeLog: Updated ChangeLog.
SessionStateActionFlags.cs: Added enumeration.

svn path=/trunk/mcs/; revision=31799
2004-08-03 13:30:50 +00:00
Juraj Skripsky 60b3b3c049 2004-07-07 Juraj Skripsky <[email protected]>
* SessionStateModule.cs: set path in session cookie to application
        path.

svn path=/trunk/mcs/; revision=30820
2004-07-07 04:53:46 +00:00
Duncan Mak d1c09fcc67 Add licensing info
svn path=/trunk/mcs/; revision=30345
2004-06-24 20:59:43 +00:00
Gert Driesen 23c68894ff * IStateRuntime.cs: added missing marshalling attributes
svn path=/trunk/mcs/; revision=29901
2004-06-18 17:24:05 +00:00
Gonzalo Paniagua Javier d03b6c7fd4 details, details
svn path=/trunk/mcs/; revision=29286
2004-06-11 08:47:09 +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
Gonzalo Paniagua Javier e05e6eac2c 2004-01-23 Gonzalo Paniagua Javier <[email protected]>
* HttpSessionState.cs:
	* SessionInProcHandler.cs: IsNewSession doesn't have a public setter.

	* SessionStateModule.cs: doesn't implement IRequiresSessionState.
	* StateServerItem.cs: not public.

svn path=/trunk/mcs/; revision=22423
2004-01-23 08:55:35 +00:00
Alon Gazit 216a44853e can't set item's value to null if the item is new.
svn path=/trunk/mcs/; revision=21712
2004-01-05 12:54:53 +00:00
Jackson Harper d0fa545f50 * SessionStateModule.cs: Handle SessionStateMode.Off properly in
Init. Only set session cookies if a new session is created. This
	fixes bug #52501.

svn path=/trunk/mcs/; revision=21492
2003-12-25 10:00:17 +00:00
Gonzalo Paniagua Javier f562f3e514 2003-12-18 Gonzalo Paniagua Javier <[email protected]>
* IStateRuntime.cs:
	* SessionStateModule.cs: class status based fixes.

svn path=/trunk/mcs/; revision=21291
2003-12-18 01:16:13 +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 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
Jackson Harper 5e57511b0a * SessionInProcHandler.cs: Use AppDomain.SetData so data is
available across all threads. Set the path of session id
	cookies. Patch by Mohammad DAMT. Fixes bug #50922.

svn path=/trunk/mcs/; revision=19977
2003-11-13 23:02:38 +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 4128794e4f * HttpSessionState.cs (CopyTo): Copy values not keys. Patch by
Yaron Shkop.

svn path=/trunk/mcs/; revision=19602
2003-11-03 22:47:31 +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
Jackson Harper b7f40d18ab * HttpSessionState.cs: Do not allow timeout to be set to less then
one.

svn path=/trunk/mcs/; revision=19446
2003-10-28 21:10:35 +00:00
Jackson Harper 2f23816e2a * SessionInProcHandler.cs: Compute timeouts
correctly. DateTime.Milliseconds is the just the milliseconds part
	of the time, it is not the entire time as milliseconds.

svn path=/trunk/mcs/; revision=19445
2003-10-28 20:58:54 +00:00
Ben Maurer fc0cb47f65 2003-10-13 Ben Maurer <[email protected]>
* SessionStateModule.cs: prevent Context.State from being null if
	the module is inited in another HttpApplication. Fixes #49569.

svn path=/trunk/mcs/; revision=18991
2003-10-13 21:44:14 +00:00
Andreas N ea2f3d7b07 2003-07-30 Andreas Nahr <[email protected]>
* IStateRuntime.cs: New interface class
	* StateRuntime.cs: New class - stubbed out

svn path=/trunk/mcs/; revision=16882
2003-07-30 13:54:32 +00:00
Andreas N f6593aa51a 2003-07-17 Andreas Nahr <[email protected]>
* SessionInProcHandler.cs: Made these internal to fix signature and building CLS-compliant

svn path=/trunk/mcs/; revision=16354
2003-07-17 18:55:46 +00:00
Gonzalo Paniagua Javier 01c7c04a78 2003-07-08 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpContext.cs: Session doesn't have a setter.

	* System.Web/HttpResponse.cs: Request is private.

	* System.Web.SessionState/SessionDictionary.cs: locking.

	* System.Web.SessionState/SessionInProcHandler.cs: use the new method
	instead of the setter.

svn path=/trunk/mcs/; revision=16029
2003-07-08 01:14:40 +00:00
Gonzalo Paniagua Javier f5b3aab281 2003-07-01 Gonzalo Paniagua Javier <[email protected]>
* ISessionHandler.cs:
	* SessionInProcHandler.cs:
	* SessionStateModule.cs: UpdateContext returns a bool indicating if we
	started a new session. Only call session start event if that is true.

svn path=/trunk/mcs/; revision=15812
2003-07-01 13:43:37 +00:00
Gonzalo Paniagua Javier be56d93873 2003-05-13 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplication.cs:
	* System.Web/HttpApplicationFactory.cs:
	* System.Web.SessionState/SessionStateModule.cs: fire
	application start and session start/end events.

svn path=/trunk/mcs/; revision=14526
2003-05-13 04:08:50 +00:00
Gonzalo Paniagua Javier da67a0d871 2003-03-31 Stefan G�rling <[email protected]>
* list: added new files to System.Web.SessionState
	* System.Web.SessionState/HttpSessionState.cs:
	* System.Web.SessionState/ISessionHandler.cs:
	* System.Web.SessionState/SessionInProcHandler.cs:
	* System.Web.SessionState/SessionStateModule.cs: initial implementation
	of InProc session.

svn path=/trunk/mcs/; revision=12936
2003-03-30 22:12:30 +00:00
Gonzalo Paniagua Javier 46059274db 2003-03-13 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpRuntime.cs: Cache no longer have a Dispose method.

	* System.Web/HttpServerUtility.cs: removed MonoTODO.

	* System.Web.Caching/Cache.cs:
	* System.Web.Caching/CacheDefinitions.cs:
	* System.Web.Caching/CacheDependency.cs:
	* System.Web.Caching/CacheEntry.cs:
	* System.Web.Caching/CacheExpires.cs:
	* System.Web.Caching/ExpiresBuckets.cs: reformatted, make class status
	page happier. Does not work yet (wait for the next patch).

	* System.Web.SessionState/HttpSessionState.cs: implemented CodePage.

	* System.Web.SessionState/SessionStateModule.cs: initial stuff to make
	it work.

svn path=/trunk/mcs/; revision=12480
2003-03-13 19:44:44 +00:00
Gonzalo Paniagua Javier 4db56925dc 2003-03-04 Gonzalo Paniagua Javier <[email protected]>
* HttpSessionState.cs: reworked to use SessionDictionary.
	* SessionDictionary.cs: implemented serialization/deserialization.

svn path=/trunk/mcs/; revision=12166
2003-03-04 01:23:51 +00:00