Commit Graph
80 Commits
Author SHA1 Message Date
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
Kornél Pál 2d604bc51e Converted ChangeLogs to UTF-8 and recovered incorrectly encoded characters.
svn path=/trunk/mcs/; revision=63835
2006-08-16 19:42:08 +00:00
Vladimir Krasnov e0d069489b * SessionInProcHandler.jvm.cs:
* SessionStateModule.cs: added NET_2_0 parts into TARGET_J2EE

svn path=/trunk/mcs/; revision=63497
2006-08-08 16:57:39 +00:00
Gonzalo Paniagua Javier 5196f313e5 2006-07-20 Gonzalo Paniagua Javier <[email protected]>
* RemoteStateServer.cs: make it inmortal.


svn path=/trunk/mcs/; revision=62800
2006-07-20 08:44:53 +00:00
Gonzalo Paniagua Javier 8f6c69fd02 2006-07-20 Gonzalo Paniagua Javier <[email protected]>
* RemoteStateServer.cs: use a Cache instead of a Hashtable so that we
	get sliding expiration for free.
	* StateServerItem.cs: expose 'timeout' through a property.


svn path=/trunk/mcs/; revision=62799
2006-07-20 08:37:44 +00:00
Gonzalo Paniagua Javier e9752faf63 2006-06-15 Gonzalo Paniagua Javier <[email protected]>
* SessionId.cs: make the length of the SessionID 24, as MS.


svn path=/trunk/mcs/; revision=61774
2006-06-15 20:58:55 +00:00
Sebastien Pouliot 13f362cbeb 2006-04-19 Sebastien Pouliot <[email protected]>
* SessionConfig.cs: Avoid a cast.
	* SessionDictionary.cs: Remove unused internal methods.
	* SessionId.cs: Const-ify internal/private values.
	* SessionStateModule.cs: Const-ify internal/private values.


svn path=/trunk/mcs/; revision=59653
2006-04-19 17:05:43 +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 558cca4186 2006-02-28 Chris Toshok <[email protected]>
* IStateRuntime.cs: wrap new interface method with NET_2_0.

svn path=/trunk/mcs/; revision=57420
2006-02-28 19:41:42 +00:00
Chris Toshok c0fea8c79e In System.Web:
2006-02-28  Chris Toshok  <[email protected]>

	* HttpCookieMode.cs: corcompare work.

	* ProcessShutdownReason.cs: same.

	* SiteMapNodeCollection.cs: same.

	* SiteMapNode.cs: same.

	* SiteMapProvider.cs: same.

	* HttpCacheRevalidation.cs: same.

	* HttpCacheability.cs: same.

	* StaticSiteMapProvider.cs: same.

	* HttpValidationStatus.cs: same.
	
In System.Web.SessionState:
	* SessionStateActions.cs: oops, actually rename the enum, not just
	the file.

2006-02-28  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=57414
2006-02-28 19:15:28 +00:00
Chris Toshok af89946383 In System.Web.Configuration.Internal:
2006-02-28  Chris Toshok  <[email protected]>

	* IInternalConfigWebHost.cs: corcompare work.

In System.Web.Configuration_2.0:
2006-02-28  Chris Toshok  <[email protected]>

	* BuildProviderAppliesTo.cs, PagesToCountAction.cs: nuke.

In System.Web.Profile:
2006-02-28  Chris Toshok  <[email protected]>

	* ProfileBase.cs: corcompare work.

	* SqlProfileProvider.cs: add stubbed out file.

In System.Web.SessionState:
2006-02-28  Chris Toshok  <[email protected]>

	* SessionStateActions.cs: rename SessionStateActionFlags to this.

	* ISessionIDManager.cs: rename ISessionIDModule to this.

	* IStateRuntime.cs: corcompare work.

In System.Web.Security:
2006-02-28  Chris Toshok  <[email protected]>

	* FormsAuthentication.cs: corcompare work.

	* MembershipCreateUserException.cs: same.

	* MembershipPasswordException.cs: same.

	* AnonymousIdentificationModule.cs: same.

In System.Web.Configuration:
2006-02-28  Chris Toshok  <[email protected]>

	* FormsAuthPasswordFormat.cs: ifdef out the [Serializable] in the
	2.0 case.

In System.Web.Hosting:
2006-02-28  Chris Toshok  <[email protected]>

	* IAppDomainFactory.cs: corcompare work.

	* IAppManagerAppDomainFactory.cs: same

	* IISAPIRuntime.cs: same.

In System.Web.Management:
2006-02-28  Chris Toshok  <[email protected]>

	* SqlFeatures.cs: corcompare work

	* IRegiisUtility.cs: same.

	* WebEventFormatter.cs: same.

	* RuleFiringRecord.cs: same.

	* SessionStateType.cs: same.

	* WebApplicationInformtion.cs: same.

	* EventNotificationType.cs: same.

	* WebBaseEvent.cs: same.

	* IRegisterCreateITypeLib.cs: nuke


svn path=/trunk/mcs/; revision=57413
2006-02-28 18:56:23 +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
Konstantin Triger 88ccfa6ab7 correcting serialization conditions
svn path=/trunk/mcs/; revision=55734
2006-01-18 16:29:08 +00:00
Konstantin Triger 7ac4a39c2f merging HttpSessionState.cs@@/main/19-24
svn path=/trunk/mcs/; revision=55233
2006-01-09 15:59:31 +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 2a3cf76ffb 2005-09-22 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpRequest.cs: new SetFilePath() that does not conflict
	with SetCurrentExePath. Now when transfering from a page to another,
	CurrentExecutionFilePath and FilePath are correct.
	* System.Web.SessionState/SessionStateModule.cs: use the new funciton
	in HttpRequest.


svn path=/trunk/mcs/; revision=50559
2005-09-23 03:06:25 +00:00
Jackson Harper ad1f72ec7a * SessionStateModule.cs: Use a concat instead of a format (mucho
faster).
        

svn path=/trunk/mcs/; revision=50536
2005-09-22 20:44:55 +00:00
Gonzalo Paniagua Javier 263772ffe3 2005-09-21 Gonzalo Paniagua Javier <[email protected]>
* SessionStateModule.cs: fix compilation warnings and use the
	application path for the cookie path. This is a temporary fix for 76172.
	* SessionId.cs: don't access the cookie collection twice.


svn path=/trunk/mcs/; revision=50424
2005-09-21 22:11:28 +00:00
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
Eyal Alalouf 32d7dcfd43 TARGET_J2EE fixes
svn path=/trunk/mcs/; revision=49692
2005-09-08 12:54:06 +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
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 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
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 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