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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user