j.bird
02-02-2005, 09:57 AM
I am stumped here, I have pages in a protected directory that I don't want users to go to with out logging in first. The data is actually based on their log in profile. My problem is that when I go to a page that is suppose to be protected with out logging in I get an error that the variable is undefined. As it should be but I don't get redirected to the log-in page.
can any tell me what the proper syntax is for the following scenario.
user goes to a protected page without logging in
page should check for the existance of sessionID
If it is blank redirect user to the login page
If it is undefined redirect user to the login page
Here is the latest iteration of my code
sessionID = request.QueryString("sessionID")
If sessionID ="" then
response.Redirect("../login/login.asp")
end if
When coming to page from a bookmark the "sessionID" does not exist and the user should be redirect, but I get an error
any suggestions or examples would be greatly appreciated.
TIA
can any tell me what the proper syntax is for the following scenario.
user goes to a protected page without logging in
page should check for the existance of sessionID
If it is blank redirect user to the login page
If it is undefined redirect user to the login page
Here is the latest iteration of my code
sessionID = request.QueryString("sessionID")
If sessionID ="" then
response.Redirect("../login/login.asp")
end if
When coming to page from a bookmark the "sessionID" does not exist and the user should be redirect, but I get an error
any suggestions or examples would be greatly appreciated.
TIA