I'm trying to make an asp.net login that uses MSSQL 2000 for authentication. I would like it to use sessions so i can store the username.
DB fields are username, password.
The passwords are stored as SHA1 hashes. The pages that look for the user to see if he is logged in is
Code:
<%
If Session("loggedin") = "yes" Then
' Do nothing, be happy, let them continue on down the page.
Else
Response.Redirect "login.asp" ' or whatever we named our login page
End If%>
thanxs i just needhelp with the login and setting the sessions.
Also my connection string in web.config looks like this
Code:
<add key="ConnectionString" value="localhost;uid=username;pwd=password;database=db;" />