954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Session_Start fires twice!!

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

ralaing
Newbie Poster
6 posts since Aug 2004
Reputation Points: 10
Solved Threads: 0
 

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 ?

InstantASP Ltd
Newbie Poster
9 posts since Sep 2004
Reputation Points: 10
Solved Threads: 0
 

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

ralaing
Newbie Poster
6 posts since Aug 2004
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You