How can I simulate a loss of session state
Is there anyway I can simulate the loss of the InProc session state? I am trying to see how my app handles if such a thing happens. Can t开发者_C百科his be done from IIS Manager?
Thanks,
AJ
Yes. Restart the application pool.
Even more easily just modify your applications web.config, open it in Notepad and add a whitespace at the end. Click-Save and your AppDomain will recycle (Not your Application Pool), this is more lightweight/quick way of having the same behavior.
精彩评论