* 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
* SessionStateModule.cs: preserve the query part of the url when
redirecting with cookieless sessions active. Fixes bug #318790
2007-09-18 Marek Habersack <[email protected]>
* SessionIDManager.cs: preserve the query part of the url when
redirecting with cookieless sessions active. Fixes bug #318790
svn path=/trunk/mcs/; revision=85955
* 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
* 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
* 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
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
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
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
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
* 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
* SessionStateModule.cs: prevent Context.State from being null if
the module is inited in another HttpApplication. Fixes#49569.
svn path=/trunk/mcs/; revision=18991
* 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
* 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
* 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
* 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