Diego Diego - 1 month ago 12
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

thanks

Answer

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.