Diego Diego - 1 year ago 148
ASP.NET (C#) Question

force Session_Start

Hoe can I force the Session_Start method on my global.asax to be called every time my application runs on development mode?

I have some code that I need to debug but sometimes it is called, sometimes it isn't.
I already tried closing the "ASP.NET Development Server" but no luck


Answer Source

I manage to do it by restarting the "ASP.NET State Service" which is the service used to manage session state on a computer.

Not the ideal solution but solves my problem.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download