开发者

How can I simulate a loss of session state

开发者 https://www.devze.com 2023-02-06 21:49 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消