I would like to allow only one access per user in my webapp; but the code i wrote i’snt working; every time return ‘user alredy conected’; but he is not.
For i As Integer = 0 To App.SessionCount - 1
If App.SessionAtIndex(i).Identifier <> Session.Identifier Then
If Session.MyUserName=App.SessionAtIndex(i).MyUserName Then
MsgBox "User Alredy Connected."
App.SessionAtIndex(i).ShowURL(App.URL)
End
End If
Next
Could you help me?