#19346: Fixing session state behavior setup.

Work Item: 19346

--HG--
branch : 1.x
This commit is contained in:
Piotr Szmyd
2013-05-10 14:32:06 +02:00
parent f74252af67
commit 81f0e03ab3

View File

@@ -50,9 +50,6 @@ namespace Orchard.Mvc.Routes {
if (routeData == null)
return null;
// push provided session state behavior to underlying MvcHandler
effectiveHttpContext.SetSessionStateBehavior(SessionState);
// otherwise wrap handler and return it
routeData.RouteHandler = new RouteHandler(_workContextAccessor, routeData.RouteHandler, SessionState);
routeData.DataTokens["IWorkContextAccessor"] = _workContextAccessor;