[Date Prev][Date
Next][Thread Prev][Thread Next][Date
Index][Thread Index]
Re: [OT] Web ASP or javascript code help needed
Quoting steve.cooper@xxxxxxx:
> All I need is some code to do that? Any ideas?
In your global.asa file, stick something in the Session_OnStart routine -
eg:
Sub Session_OnStart
Dim startPage
Dim currPage
startPAge="/index.asp"
' Check to see if requested page is the front page to the site
currPage = Request.ServerVariables("SCRIPT_NAME")
' if page is not correct then send the visitor to the correct login page
if strcomp(currPage, startPage, 1) Then
Response.Redirect( startPage)
End If
End Sub
HTH,
Tony
Home |
Main Index |
Thread Index
|