Hi All,
I am developing a web application using asp.net 2.0,vb.net & sql server 2005.
i want to define a multiuser access ffor my web application,
for example only 5 user can access a web form same time and if other
users try to access web form it will show some warning message , like
no more user allow to login till some one will not log out.
kavitaPosted Sep 22, 2007, 1:29 AM
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
Application("counter") = 0
End Sub
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
Dim cnt As Integer = Application("counter")
cnt = cnt + 1
If cnt > 5 Then
MsgBox("hello kavita!!!")
Response.End()
End If
Application("counter") = cnt
End Sub
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
Dim cnt As Integer = Application("counter")
cnt = cnt - 1
Application("counter") = cnt
End Sub
best of luk!