Single Access Login
Use asp/db; hello/world; John/Doe; Mary/Jane to login

Tornado Login
ID

Password

   
 

Single User Login
<script language="VB" runat="server">
Sub Page_Load(Src As Object, E As EventArgs)
  Dim GD As New Tornado.GetData
  Dim LOG1 As New Tornado.z
  With LOG1
    Dim Qp As String = "U=50| S=gold| M=g!sys=t| Xf=0,1| D=Nwind.mdb| Q=Orders| Gdf=0,1,2,3|"
    Qp &= " Th=tit=Single Access Login!Sub=Use asp/db; hello/world; John/Doe; Mary/Jane to login"
    .dbQP = Qp
    Dim Li As String = "type=PoorMan|passfile=/bin/pass.txt,application1| titletxt=Tornado Login|"
    Li &= " FromAddr=frank@aspdb.com| EmailSubject=Your Password| Email Body=Your password for "
    Li &= "[[LoginID]] is [[password]]| SMTPServer=Your_SMTP_Server"
    .dbLogin = Li
    .ASPdbNET()
  End With
End Sub
</script>
Login is essential in any secured applications. Normally, you have to either purchase a stand alone Login component or write one yourself to integrate into the particular application. Tornado offers two levels of integrated Login support - PoorMan and DB style. Once the dbLogin property is defined, the Login/Logout action is activated. This example illustrates the PoorMan style in which ID+Password list is stored in a text file file. The DB version uses a DB source to control the logins and is easily an application by itself at the expense of this 1 lines of code (.dbLogin). Putting in ID+Passwords in the aspx file is as secure as the aspx file itself.

Note: This Login is a Single User Access Login. That means, you cannot login more than once.

The Poorman style implementation is a quick way to secure an application. The password list can be stored in the aspx file or in an external file.