Commit Graph
33 Commits
Author SHA1 Message Date
Sebastien Pouliot 6c57da6093 2005-09-09 Sebastien Pouliot <[email protected]>
* HttpSessionState.cs: Added LinkDemand for Minimal.
	* IHttpSessionState.cs: Renamed IsCookieLess to IsCookieless.
	* ISessionStateItemCollection.cs: Added ICollection and IEnumerable.
	* SessionStateMode.cs: Added Custom (2.0).
	* SessionStateModule.cs: Use RandomNumberGenerator.Create to create 
	the RNG. Assert EnvironmentPermission to read MONO_XSP_STATIC_SESSION.
	Added LinkDemand for Minimal.
	* StateRuntime.cs: Added LinkDemand for Minimal, new ProcessRequest
	override (2.0) and security attributes on methods.


svn path=/trunk/mcs/; revision=49834
2005-09-09 21:47:04 +00:00
Gonzalo Paniagua Javier 57018a07c6 2005-09-08 Gonzalo Paniagua Javier <[email protected]>
* SessionStateModule.cs: raise the Start event for new sessions.


svn path=/trunk/mcs/; revision=49743
2005-09-08 21:13:18 +00:00
Gonzalo Paniagua Javier 353f2dbdd1 2005-09-06 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpRuntime.cs: remove Console.

	* System.Web/HttpApplicationFactory.cs: don't hook Session_End, but keep
	the MethodInfo around for later invocation if needed. Don't call
	GetMethods() for every HttpApplication (or derived class) instances.
	Added a method, used by SessionStateModule, that will create use an
	application without context to invoke Session_End. Keep a pool of
	applications that are meant to be used by this method only.

	* System.Web/HttpApplication.cs: add a SetSession method and do not
	attach all the events if the application is for Session_End only.

	* System.Web.SessionState/SessionStateModule.cs: Only invoke the End
	event using the new method in HttpApplicationFactory and when session
	state mode is InProc.

	Fixes bug #71662.


svn path=/trunk/mcs/; revision=49610
2005-09-07 03:19:02 +00:00
Eyal Alalouf b4cf914e5a TARGET_J2EE/JVM fixes
svn path=/trunk/mcs/; revision=49261
2005-09-01 11:54:56 +00:00
Gonzalo Paniagua Javier e867b56516 2005-08-30 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplication.cs: clone the module collection so that
	it's not shared between HttpApplications. Call GetHandler() in the
	right place.

	* System.Web.SessionState/SessionStateModule.cs: added lock around
	'config'.
	* System.Web.SessionState/SessionInProcHandler.cs: when inserting in
	the the session in the Cache, use sliding expiration only.

	* System.Web.Configuration/ModulesConfiguration.cs: add Clone (ugly).


svn path=/trunk/mcs/; revision=49157
2005-08-30 23:01:49 +00:00
Miguel de Icaza 54079f764a Commit of changes to core files, on behalf of the team
svn path=/trunk/mcs/; revision=48944
2005-08-26 22:58:48 +00:00
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
Ilya Kharmatsky 932abd4c77 svn path=/trunk/mcs/; revision=46210 2005-06-19 09:34:34 +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 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
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
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 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
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 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 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
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
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 18be21e855 2002-10-08 Gonzalo Paniagua Javier <[email protected]>
* list: Modified file.

	* System.Web/HttpApplication.cs: fixed type and handle factories when
	creating IHttpHandler for a request.

	* System.Web.Configuration/HttpHandlersSectionHandler.cs: made a
	couple of static methods be part of a class used in other handlers.
	* System.Web.Configuration/HttpModulesConfigurationHandler.cs: handler
	for modules.
	* System.Web.Configuration/ModuleItem.cs: added IsMatch method.
	* System.Web.Configuration/ModulesConfiguration.cs: made it similar to
	the handlers class: added Clear, Remove.

	* System.Web.Handlers/ChangeLog: New file.
	* System.Web.Handlers/TraceHandler.cs: stubbed out. This should generate
	the trace page when tracing is enabled.

	* System.Web.SessionState/SessionStateModule.cs: don't throw exception.
	Just for testing the configuration stuff until we implement this.

svn path=/trunk/mcs/; revision=8074
2002-10-08 22:03:56 +00:00
Gonzalo Paniagua Javier 9d79ec487d 2002-08-18 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpContext.cs: reformatted.
	* System.Web/HttpStaticObjectsCollection.cs: implemented GetEnumertor,
	CopyTo and the indexer.
	* System.Web.Compilation/PageCompiler.cs: fixed compilation.
	* System.Web.SessionState/HttpSessionState.cs: IsAbandoned is internal.
	* System.Web.SessionState/SessionDictionary.cs: scope fixes.
	* System.Web.SessionState/SessionStateModule.cs: added events.

svn path=/trunk/mcs/; revision=6730
2002-08-19 01:31:11 +00:00
Gonzalo Paniagua Javier 22f23b9995 2002-06-04 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpRequest.cs: implemented Browser property.

	* System.Web.UI/Page.cs: finished stubbing out. Implemented some
	methods.

	* System.Web.SessionState/HttpSessionState.cs:
	* System.Web.SessionState/SessionStateModule.cs: new files with some
	implementation and the rest stubbed.

svn path=/trunk/mcs/; revision=5116
2002-06-04 13:27:21 +00:00