开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜