When I start up my application from within VS .NET the Sesssion_Start fires twice and my counter goes up by 2s. Why?

Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
' Fires when the session is started
Application("SessCount") += 1
End Sub

You may wish to check the AutoEventWireUp setting. This can often cause pages to fire events twice. Try changing it from true to false or visa versa within the global.asax page directive. Does this help ?

???There is no page directive in the global.asax file.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.