hello everyone ... i had tried and tried to do it and at last i have done it by using the cookies ...
so i am gonna put what i have done so if anyone want to do as what i have done
first u need three pages: first page for the login form which is done by html (admin.asp) and the second page which will check if the username and password enetered are in the database (auth.asp) and the third is the control panel for the administrator(control.asp)
when rhe admin enter his username and password in the admin.asp he will go to the auth.asp to check if it is right or not so if yes it will redirect him to control.asp if it is not it will take him back to admin.asp
now we will add to auth.asp the assigning cooky we will enter it as follow
If Not rst.EOF Then
Response.cookies("user1") = Request.form("user")
response.redirect("control.asp")
else
response,redirect("admin.asp")
now we will go to the control panal and we will retrieve the cooky and we will do as follow
<%
admin = request.cookies("user1")
if admin <> "" then
%>
'here you can write ur html code if it is or u can continue with the asp
<%
else
response.redirect("admin.asp")
end if
%>
so with this code in the control.asp it will check in the cooky file if it is empty it will take me back to the admin.asp and if it is not empty it will open the page ...
i wish i had helped others with my topic .. see you guys