-1
public class CustomRoutingHandler : MvcRouteHandler
{
protected override IHttpHandler GetHttpHandler(RequestContext requestContext)
{
requestContext.HttpContext.Session is NULL;
//Is there any way to access Session from there ?
return FindHttpHandler(requestContext);
// In created handler Session is not null
}
}
複製到http://stackoverflow.com/questions/218057/httpcontext-current-session-is-null-when-routing-requests – Korayem