DO NOT DOWNLOAD, STABLE RELEASE AVAILABLE ON THE DOWNLOADS TAB

Fixes 24652. Enables support for Session state in Base.
Read more:
http://our.umbraco.org/forum/developers/extending-umbraco/3653-MissingSession-State-for-Base-Methods?p=0#comment14131
http://stackoverflow.com/questions/276355/can-i-access-session-state-from-an-httpmodule

[TFS Changeset #59555]
This commit is contained in:
kenny
2009-09-30 06:29:10 +00:00
parent 565fa7864d
commit a794eeb3c9

View File

@@ -5,6 +5,7 @@ using System.Text.RegularExpressions;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using System.Web.UI;
using System.Reflection;
using System.Collections.Specialized;
@@ -14,7 +15,7 @@ using umbraco.cms.businesslogic.member;
namespace umbraco.presentation.umbracobase
{
public class requestModule : IHttpModule
public class requestModule : IHttpModule, IRequiresSessionState
{
#region IHttpModule Members
public void Dispose()
@@ -23,11 +24,11 @@ namespace umbraco.presentation.umbracobase
public void Init(HttpApplication httpApp)
{
httpApp.BeginRequest += new EventHandler(OnBeginRequest);
httpApp.PreRequestHandlerExecute += new EventHandler(OnPreRequestHandlerExecute);
}
public void OnBeginRequest(Object sender, EventArgs e)
public void OnPreRequestHandlerExecute(Object sender, EventArgs e)
{
HttpApplication httpApp = (HttpApplication)sender;