Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
how to prevent a loop with asp
I have a script on my website that allows me to protect my website so only people who logged into the site are able to see the protected pages. here are my question:
i used a cookie in my login script with the following code
If (not rs.BOF) and (not rs.EOF) then
Response.Cookies("Username") = rs.Fields("User_name")
Response.Write Request.Cookies("url to my protected page")
here is the code for the protected page which calls the check.asp file:
and here is the check.asp file
<%if Request.Cookies("User_name") <> "" then
Response.Redirect ("send them to view the web site")
'send them back to login page
when i type in a wrong password I have the change to retype the password and when the password id right than i go back to the index.page but as it is password protected i go through the same procedure again.
0 · ·