Hi.
How can i make sure that my login form is secure enough ?
(I dont know much about web dev)
This is that i have.
login.html
and
Auth.asp
Then on all the other pages i just run code inside the if cookie isloggedin="true" statement
I dont think the above is good enough
Is it possible to create a "Fake" cookie and just set the cookie value to isloggedin="True"
Because if you can then i'm @#%#@ ?
How should i do this without using sessions I hate sessions , cus you have to create a session for all declared strings ?
How can i make sure that my login form is secure enough ?
(I dont know much about web dev)
This is that i have.
login.html
PHP:
<form>
Username: <input type="text" name="fUsername" /><br />
Password: <input type="password" name="fPassword" />
</form>
and
Auth.asp
PHP:
Dim strUserName
Dim strPassword
<%
strUsername = (request.querystring("fUsername"))
strPassword = (" " & request.querystring("fPassword"))
"Select * from Users where USER_NAME = Username"
if SQLquery(USER_NAME) = strUsername then
if SQLQuery(Password) = strPassword then
create a cookie (IsLoggedIn) = "TRUE"
create another cookie with uniqueusername="strUsername"
else
cookie islogged in = false
end if
else
cookie islogged in = false
end if
if cookie isloggedin="true" then
'Code here
else
Failed login messgae here
end if
%>
Then on all the other pages i just run code inside the if cookie isloggedin="true" statement
I dont think the above is good enough
Is it possible to create a "Fake" cookie and just set the cookie value to isloggedin="True"
Because if you can then i'm @#%#@ ?
How should i do this without using sessions I hate sessions , cus you have to create a session for all declared strings ?