I have found this thread which describes a very interesting OnSessionStart event, but I am unable to \"hook\" it up (whatever it means) to my global.asax.cs. I am also unsuc
It looks like this:
void Session_Start(object sender, EventArgs e) { // your code here, it will be executed upon session start }
It does work in Asp.net MVC. Put it as a method in the class defined in Global.asax.cs, for example just after the RegisterRoutes method.