I have an MVC4 Application deployed on my IIS server and the issue that i'm facing is, when i leave my application idle for 20min and perform my login post service call it is returning me 403 forbidden error,but the next subsequent service call succeeds.here is my code
LoginController:
FormsAuthentication.SetAuthCookie(Result.UserName, false);
return Json(new { url = Url.Action("Index", "Home") });
web.config:
<authentication mode="Forms">
<forms loginUrl="~/login/Login" timeout="20" />
</authentication>
Is there any setting related To IIS that i need to change? B.T.W The idle timeout settings for my application pool is 20 min..
Regards