What I'm trying to do here is control the number of user sessions logged into the application.
So I need Membership.GetNumberOfUsersOnline() to be one less when a user clicks on Log Out.
In my login page_load I have the following:
Dim intUserCount As Integer
intUserCount = Membership.GetNumberOfUsersOnline()
If intUserCount > 5 Then
Me.Login1.Visible = False
Me.lblMessage.Text = "You have exceeded your user count."
End If
Go to the complete details ...