For ASP.NET MVC 1 and 2:
builder.Register(c => HttpContext.Current.User).HttpRequestScoped();
For ASP.NET MVC 3:
builder.Register(c => HttpContext.Current.User).InstancePerHttpRequest();
To integrate Autocac ASP.NET MVC3 you can take a look at the documentation (updated link).
For ASP.NET MVC 5:
builder.Register(c => HttpContext.Current.User).InstancePerRequest();
source
share