On IIS 8.5 we have an web application running with application pool's identity set to
When we switch to
Custom account instead of the
ApplicationPoolIdentity then web application's user session is lost at random and also on app pool recycle.
But everything is ok with the
Any idea what is the issue with
Custom account which is using a windows user account that has IIS_IUSRS permission.
All we need is to have the
Custom account identity to behave the same way as the
ApplicationPoolIdentity for the session state. Everything else is ok.
- We are using
InProcSession State Mode as we have not defined the value for the mode property in the web.config file and
InProcis the default value
- Same IIS web application retains sessions after a manual/auto app pool recycle for all users in case of ApplicationPoolIdentity. Good/bad is not the question here but here is the reason how that my happen: https://stackoverflow.com/a/4089977/218408
- Permanently stopping the app pool recycling is not an option for us