Hi all,
I am working on C# app in that I want to save app current running state before user will Shutdown, Log off and restart the computer. For this I am using SystemEvents_SessionEnding event, but through this I am not able to debug it.
Please suggest me is there any way to debug it.
Thanks
How to debug SystemEvents_SessionEnding event in app?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Oct 27, 2013, 9:40 PM EDT
Session_End will not fire on closing the window. It will fire when the Session is Expired or when you call Session.Abandon().
Note: You have to set Session Mode to InProc in the Web.config file