If ABMShared.NeedsAuthorization Then
Log("Number of active connections: " & ScoreEngine.Connections.Size)
If session.GetAttribute2("IsAuthorized", "") = "" Then
ABMShared.NavigateToPage(ws, ABMPageId, "../")
Return
Else
'Make sure our page is stored in a list of known sessions
CallSub3(ScoreEngine, "NewConnection", Me, ABMPageId) 'Since we are a valid authenticated user, Add our connection into the table.
If ScoreEngine.Connections.Size > 1 Then 'We have more than one connection
session.Invalidate
ABMShared.NavigateToPage(ws, ABMPageId, "../")
Return
End If
SocketTimer.Enabled = True
End If
End If