Closed vip8668 closed 7 years ago
Inject the OwinEnvironmentService and access the request via the dictionary or wrap it with an OwinContext.
Can you give me a sample code. I had try
OwinContext ctx;
public UserService(OwinEnvironmentService owinEnv)
{
ctx = new OwinContext(owinEnv.Environment);
var request = ctx.Request;
}
but request doesn't have Session in this.
What is session? ASP.NET Session State?
What is session? ASP.NET Session State?
Yes I Use Asp.Net MVC 5. I want to check the generated captcha and save to the session in the previous step
I think it should be available if you're in IIS.
I need access session in a custom user service to check captcha. But when i access HttpContext.Current.Session this object is null. Please tell me how to access Session in custom userservice. Thank!