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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
SessionStateItemExpireCallback.cs: Explicit modifier "sealed" not
required in definition as delegates, by default are sealed.
svn path=/trunk/mcs/; revision=33082
* 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