An example of what I use to get the previous page (this is included as an include on every page):
<%
If Session( "siUserName" ) <> "Auth_yes" Then
prePage = Request.ServerVariables( "HTTP_REFERER" ) ' where weve come from
If Request.ServerVariables( "HTTP_REFERER" ) = "" Then prePage = "default.asp"
Dim goPage
goPage = "siauth.asp?prepage=" & prePage ' go elsewhere but take the info
Response.Redirect goPage
End If
%>
and I would get the previous page (prePage) from the querystring in the siauth.asp page
And then I would set a session
If password = wrong then
session( "numberoftries" ) = session( "numberoftries" ) + 1
End if
if session( "numberof ries" ) > 2 Then
' get the ip address
yourIP = request.servervariables("R
' then enter into database
response.redirect "youaresowrongandihaveyour
end if
I guess that should give you enough to go on considering the value of the question :)
Good Luck
JetGrrrL
Ps You might want to increase you points to get better answers. Even closing some of your Open (and old) questions will get people to help you quicker.
Main Topics
Browse All Topics





by: bdobynsPosted on 2004-03-07 at 21:20:40ID: 10538336
One way that you could it is to pass the link as a QueryString like this:
?link=http ://www.dom ain.com">Y our Link</a>
)
MOTE_ADDR)
<a href="yourPasswordPage.asp
Then in your password page you would call the query string like this:
pLink = Request.QueryString("link"
I will have to think about the three times questions but the way you get the IP address of the user is by using Request.ServerVariables:
If Count=3 Then
Request.ServerVariables(RE
Else
Response.Redirect(link)
End If
Brad