Very simple forms authentication

Mondeo

Centurion
Joined
Nov 10, 2006
Messages
128
Location
Sunny Lancashire
How can I use forms authentication in its most basic form, I just want a simple login system for a very basic site.

Ideally i'm trying to do something like this


' Login button click
Dim username as string = "myusername"
Dim password as string = "mypassword"

If txtUsername.text = username And txtPassword.text = password Then
User.IsAuthenticated = True
Response.Redirect "privatearea/main.aspx"
Else
label1.text = "Access Denied"
End If

How can I do it?
 
Thanks for that, theres a very basic tutorial on there simply using a boolean session value to set if the user is authenticated or not. I think that would do fine for this job.
 
Back
Top